Skip to content

Commit

Permalink
ci: publish docker image after new release
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonadoni committed Nov 10, 2023
1 parent 5b25925 commit 34131ba
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,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

0 comments on commit 34131ba

Please sign in to comment.