Skip to content

Commit

Permalink
fix: Generate image tags properly (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKobayashi authored Sep 28, 2024
1 parent 6c41cda commit 8f76793
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ on:
release:
types:
- published
push:
branches:
- main
tags:
- 'v[0-9]+*'
workflow_dispatch:

env:
Expand Down Expand Up @@ -81,6 +76,10 @@ jobs:
uses: docker/[email protected]
with:
images: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern=v{{version}},event=tag
type=semver,pattern=v{{major}}.{{minor}},event=tag
type=semver,pattern=v{{major}},event=tag
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push container image
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
# this is a built-in strategy in release-please, see "Action Inputs"
# for more options
release-type: simple
token: ${{ secrets.RP_TOKEN }}
- uses: actions/[email protected]
- name: Tag major and minor versions
if: ${{ steps.release.outputs.release_created }}
Expand Down

0 comments on commit 8f76793

Please sign in to comment.