Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add tags to reusable-ko-build #284

Merged
merged 1 commit into from
Jun 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading