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 Oct 26, 2023
1 parent 2890a68 commit 866c655
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 866c655

Please sign in to comment.