Skip to content

Commit

Permalink
Ensure the apptainer image tag is the release name on release, or "la…
Browse files Browse the repository at this point in the history
…test" otherwise. (#112)

Co-authored-by: Jean-Philippe Lenain <[email protected]>
  • Loading branch information
jlenain and jlenain authored Mar 6, 2024
1 parent 91d8f1e commit 70ad9e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
- name: Deploy ${{ env.container }} container ${{ matrix.deffiles[1] }}
# Otherwise, the container tag is "latest" by default.
# Don't push the container on a pull request.
if: github.event_name != 'pull_request'
if: ${{ (github.event_name != 'release') && (github.event_name != 'pull_request') }}
run: |
apptainer push ${{ env.container }}.sif oras://${{ env.registry }}/${{ github.repository }}:${{ matrix.deffiles[1] }}
Expand Down

0 comments on commit 70ad9e8

Please sign in to comment.