diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5f31eda..67841549 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -153,3 +153,27 @@ jobs: - name: Build Docker image run: ./run-tests.sh --check-docker-build + + release-docker: + runs-on: ubuntu-20.04 + if: > + vars.RELEASE_DOCKER == 'true' && + github.event_name == 'push' && + startsWith(github.ref, 'refs/tags/') + needs: + - lint-shellcheck + - lint-black + - lint-flake8 + - lint-pydocstyle + - lint-check-manifest + - docs-sphinx + - python-tests + - lint-dockerfile + steps: + - name: Release docker image + uses: reanahub/reana-github-actions/release-docker@v1 + with: + username: ${{ secrets.DOCKER_USER }} + token: ${{ secrets.DOCKER_TOKEN }} + organisation: ${{ vars.DOCKER_ORGANISATION }} + registry: ${{ vars.DOCKER_REGISTRY }}