From 717f455c68ab98d28f2fe63b1196341f8b0fa476 Mon Sep 17 00:00:00 2001 From: Scott McKendry <39483124+scottmckendry@users.noreply.github.com> Date: Fri, 23 Aug 2024 14:55:37 +1200 Subject: [PATCH] fix(ci): include latest tag for published packages --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32eb4bc..a0eaf94 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ on: env: REGISTRY: ghcr.io - IMAGE_NAME: mnemstart + IMAGE_NAME: scottmckendry/mnemstart jobs: test: @@ -73,6 +73,9 @@ jobs: uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=raw,value=latest + type=raw,value=${{ needs.release-please.outputs.tag_name }} # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action @@ -82,7 +85,7 @@ jobs: with: context: . push: ${{ github.event_name != 'pull_request' }} - tags: ghcr.io/scottmckendry/mnemstart:${{ needs.release-please.outputs.tag_name }} + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max