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. (cta-observatory#112)

Co-authored-by: Jean-Philippe Lenain <[email protected]>
  • Loading branch information
2 people authored and tibaldo committed Mar 19, 2024
1 parent cf9da35 commit ebf14ec
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 ebf14ec

Please sign in to comment.