Only set latest tag on version bump (#232)

* Only set `latest` tag on version bump

Signed-off-by: Russell Troxel <russell@troxel.io>

* go mod tidy

Signed-off-by: Russell Troxel <russell@troxel.io>

---------

Signed-off-by: Russell Troxel <russell@troxel.io>
This commit is contained in:
Russell Troxel 2023-10-18 03:48:20 -07:00 committed by GitHub
parent 8c51f278ff
commit 294191ecae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -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
@ -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

View File

@ -26,3 +26,4 @@ jobs:
uses: ./.github/actions/docker-image
with:
token: "${{ secrets.GITHUB_TOKEN }}"
latest: false