Skip to content

Commit

Permalink
fix(ci): include latest tag for published packages
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmckendry committed Aug 23, 2024
1 parent b76f922 commit 717f455
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:

env:
REGISTRY: ghcr.io
IMAGE_NAME: mnemstart
IMAGE_NAME: scottmckendry/mnemstart

jobs:
test:
Expand Down Expand Up @@ -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
Expand All @@ -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

0 comments on commit 717f455

Please sign in to comment.