Skip to content

Commit fa73055

Browse files
committed
chore: include VERSION and COMMIT env vars in release workflow for ldflags templates
1 parent 2a1d4b8 commit fa73055

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ jobs:
5757
if: startsWith(github.ref, 'refs/tags/')
5858
env:
5959
KO_DOCKER_REPO: ghcr.io/${{ github.repository }}
60+
# Consumed by ldflags templates in .ko.yaml
61+
VERSION: ${{ github.ref_name }}
62+
COMMIT: ${{ github.sha }}
6063
run: |
6164
ko build --bare --tags="${GITHUB_REF_NAME},latest" --platform=linux/amd64,linux/arm64 ./
6265

0 commit comments

Comments
 (0)