From 6a2abcbb90920786ab87496a037eab50a17a85a9 Mon Sep 17 00:00:00 2001 From: Marco Donadoni Date: Fri, 27 Oct 2023 13:46:04 +0200 Subject: [PATCH] ci: publish docker image after new release Closes reanahub/reana#752 --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ac99220..22c2eca4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -167,3 +167,30 @@ 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: + - docs-sphinx + - lint-black + - lint-check-manifest + - lint-dockerfile + - lint-flake8 + - lint-pydocstyle + - lint-shellcheck + - python-tests + 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 }} + platform: | + linux/amd64 + linux/arm64