Skip to content

Commit bc821d9

Browse files
committed
fix: Specify tag during ko build
Signed-off-by: Dinar Valeev <k0da@opensuse.org>
1 parent ed45d9e commit bc821d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ jobs:
4848
- uses: azure/setup-helm@v4.3.0
4949
- name: Login to ghcr.io
5050
uses: docker/login-action@v3
51+
env:
52+
TAG: ${{ needs.release.outputs.tag_name }}
5153
with:
5254
registry: ghcr.io
5355
username: ${{ github.actor }}
5456
password: ${{ secrets.GITHUB_TOKEN }}
55-
- run: ko build --bare github.com/absaoss/karpenter-provider-vsphere/cmd/controller
57+
- run: ko build -t $TAG --bare github.com/absaoss/karpenter-provider-vsphere/cmd/controller
5658
# package and push helm
5759
- name: package/push helm
5860
env:

0 commit comments

Comments
 (0)