Skip to content

Commit

Permalink
Fixed the way to get tag name in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenain committed Feb 1, 2024
1 parent 1f3397c commit a659343
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ jobs:
run: |
echo ${{ github.token }} | apptainer remote login --username ${{ github.actor }} --password-stdin oras://${{ env.registry }}
- name: Deploy ${{ env.container }} container ${{ github.ref }}
- name: Deploy ${{ env.container }} container ${{ github.ref_name }}
# Assign the release tag to container on release
if: github.event_name == 'release'
run: |
apptainer push ${{ env.container }}.sif oras://${{ env.registry }}/${{ github.repository }}:${{ github.ref }}
apptainer push ${{ env.container }}.sif oras://${{ env.registry }}/${{ github.repository }}:${{ github.ref_name }}
- name: Deploy ${{ env.container }} container ${{ matrix.deffiles[1] }}
# Otherwise, the container tag is "latest" by default.
Expand Down

0 comments on commit a659343

Please sign in to comment.