Skip to content

Commit acbfdde

Browse files
committed
build(ko): fix versioning
1 parent a92f3c2 commit acbfdde

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- name: Run Ko
3131
run: |
32-
make ko-build IMG=ghcr.io/isometry/github-token-manager:${GITHUB_REF#refs/tags/v}
32+
make ko-build VERSION=${GITHUB_REF#refs/tags/v}
3333
3434
publish-chart:
3535
name: Publish Chart

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ docker-buildx: ## Build and push docker image for the manager for cross-platform
190190
.PHONY: ko-build
191191
ko-build: ## Build the manager image using ko.
192192
KO_DOCKER_REPO=$(IMAGE_TAG_BASE) \
193-
ko build --bare --platform=$(PLATFORMS) --image-label org.opencontainers.image.source=$(IMAGE_SOURCE) --push ./cmd/manager
193+
ko build --bare --platform=$(PLATFORMS) --image-label org.opencontainers.image.source=$(IMAGE_SOURCE) --tags "latest,$(VERSION)" --push ./cmd/manager
194194

195195

196196
##@ Deployment

0 commit comments

Comments
 (0)