diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 9fdd3ae..5eff5f9 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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