From 5df98b0ef2c66c33c3abf63401ab85723aaa6365 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Tue, 7 Apr 2020 17:00:14 +0200 Subject: [PATCH] Activated Docker build again --- .github/workflows/ci.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d4ec0663..8f1f23988 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -139,11 +139,11 @@ jobs: - run: pip install --upgrade setuptools wheel twine - # # Build and test Docker image - # - run: | - # docker build -t ${GITHUB_REPOSITORY} . - # docker run --rm -i -v $(pwd):/docs ${GITHUB_REPOSITORY} \ - # build --theme material + # Build and test Docker image + - run: | + docker build -t ${GITHUB_REPOSITORY} . + docker run --rm -i -v $(pwd):/docs ${GITHUB_REPOSITORY} \ + build --theme material # Build Python package - run: python setup.py build sdist bdist_wheel --universal @@ -154,12 +154,12 @@ jobs: PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: twine upload -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} dist/* - # # Push image to Docker Hub - # - env: - # DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} - # DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} - # run: | - # docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD} - # docker tag ${GITHUB_REPOSITORY} ${GITHUB_REPOSITORY}:${GITHUB_REF##*/} - # docker tag ${GITHUB_REPOSITORY} ${GITHUB_REPOSITORY}:latest - # docker push ${GITHUB_REPOSITORY} + # Push image to Docker Hub + - env: + DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} + DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} + run: | + docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD} + docker tag ${GITHUB_REPOSITORY} ${GITHUB_REPOSITORY}:${GITHUB_REF##*/} + docker tag ${GITHUB_REPOSITORY} ${GITHUB_REPOSITORY}:latest + docker push ${GITHUB_REPOSITORY}