Skip to content

Commit

Permalink
tag the image as latest when building for a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
glehmann committed Feb 7, 2024
1 parent d4337d4 commit 916cf1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,9 @@ jobs:
for platform in linux/amd64 linux/arm64 linux/386 linux/arm/v7 linux/arm/v6 linux/ppc64le linux/s390x; do
docker run --rm --platform ${platform} ghcr.io/glehmann/yage:${{ github.ref_name }} --version
done
- name: Tag the release as latest
if: startsWith(github.ref, 'refs/tags/')
run: |
curl -sL https://github.com/google/go-containerregistry/releases/download/v0.19.0/go-containerregistry_Darwin_x86_64.tar.gz | tar -zxvf - -C /usr/local/bin/ crane
crane tag ghcr.io/glehmann/yage:${{ github.ref_name }} latest

0 comments on commit 916cf1a

Please sign in to comment.