Skip to content

Commit

Permalink
feat: add tags to reusable-ko-build
Browse files Browse the repository at this point in the history
This uses the same mechanism as the docker build action to add tags to ko build actions
  • Loading branch information
ozym authored and Mossman1215 committed Jun 19, 2024
1 parent 3346a70 commit 457c342
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/reusable-ko-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ on:
type: string
description: |
the GitHub username to use for ghcr auth override.
tags:
required: false
type: string
default: latest,git-${{ github.sha }}
description: |
a comma separated list of tags to image tags.
e.g:
- latest,20230607,git-deadb33f
- cooltag,v2.0.2
- latest
paths:
required: false
type: string
Expand Down Expand Up @@ -117,7 +127,7 @@ jobs:
KO_DOCKER_REPO: ghcr.io/${{ github.repository }}
KO_CONFIG_PATH: ${{ inputs.configPath }}
REGISTRY_OVERRIDE: ${{ inputs.registryOverride }}
TAGS: latest,git-${{ github.sha }}
TAGS: ${{ inputs.tags }}
run: |
if [ -n "$REGISTRY_OVERRIDE" ]; then
KO_DOCKER_REPO="$REGISTRY_OVERRIDE"
Expand Down

0 comments on commit 457c342

Please sign in to comment.