Skip to content

Commit

Permalink
CI: Only tag image latest on tag builds
Browse files Browse the repository at this point in the history
  • Loading branch information
sgillespie committed Dec 4, 2024
1 parent d54c3f3 commit 63eda8a
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/release-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@ jobs:
docker-archive:./result \
docker://ghcr.io/${REPO_OWNER}/cardano-db-sync:$IMAGE_TAG
# Also tag it as latest
skopeo copy \
docker-archive:./result \
docker://ghcr.io/${REPO_OWNER}/cardano-db-sync:latest
# If it's a tag build, also tag it as latest
if [[ "$GITHUB_REF_TYPE" = "tag" ]]; then
skopeo copy \
docker-archive:./result \
docker://ghcr.io/${REPO_OWNER}/cardano-db-sync:latest
fi
- name: Upload ${{ github.actor }}/cardano-smash-server
run: |
Expand All @@ -76,7 +78,9 @@ jobs:
docker-archive:./result \
docker://ghcr.io/${REPO_OWNER}/cardano-smash-server:$IMAGE_TAG
# Also tag it as latest
skopeo copy \
docker-archive:./result \
docker://ghcr.io/${REPO_OWNER}/cardano-smash-server:latest
# If it's a tag build, also tag it as latest
if [[ "$GITHUB_REF_TYPE" = "tag" ]]; then
skopeo copy \
docker-archive:./result \
docker://ghcr.io/${REPO_OWNER}/cardano-smash-server:latest
fi

0 comments on commit 63eda8a

Please sign in to comment.