Skip to content

Commit

Permalink
Only set latest tag on version bump (#232)
Browse files Browse the repository at this point in the history
* Only set `latest` tag on version bump

Signed-off-by: Russell Troxel <[email protected]>

* go mod tidy

Signed-off-by: Russell Troxel <[email protected]>

---------

Signed-off-by: Russell Troxel <[email protected]>
  • Loading branch information
rtrox authored Oct 18, 2023
1 parent 8c51f27 commit 294191e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/docker-image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ inputs:
type: boolean
required: false
default: true
latest:
description: Update latest tag
type: boolean
required: false
default: true

runs:
using: composite
Expand All @@ -21,7 +26,7 @@ runs:
with:
images: ghcr.io/${{ github.repository }}
flavor: |
latest=true
latest=${{ fromJSON(inputs.latest) }}
prefix=v
tags: |
type=ref,event=branch
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ jobs:
uses: ./.github/actions/docker-image
with:
token: "${{ secrets.GITHUB_TOKEN }}"
latest: false

0 comments on commit 294191e

Please sign in to comment.