Skip to content

Commit db96594

Browse files
committed
chore: migrate container registry from ECR to GHCR
1 parent d2ab505 commit db96594

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
AWS_ACCOUNT_ID ?= $(shell aws sts get-caller-identity --query Account --output text)
33
AWS_REGION ?= us-west-2
44
RELEASE_VERSION ?= dev-$(shell git rev-parse --short HEAD)
5-
ECR_REPO ?= public.ecr.aws/kro
5+
OCI_REPO ?= ghcr.io/kro-run/kro
66

7-
CONTROLLER_IMAGE ?= ${ECR_REPO}/controller:${RELEASE_VERSION}
8-
HELM_IMAGE ?= ${ECR_REPO}
9-
KO_DOCKER_REPO ?= ${ECR_REPO}/kro
7+
CONTROLLER_IMAGE ?= ${OCI_REPO}/controller:${RELEASE_VERSION}
8+
HELM_IMAGE ?= ${OCI_REPO}
9+
KO_DOCKER_REPO ?= ${OCI_REPO}/kro
1010

1111
KOCACHE ?= ~/.ko
1212
KO_PUSH ?= true
@@ -176,13 +176,13 @@ $(CONTROLLER_GEN): $(LOCALBIN)
176176

177177
.PHONY: image
178178
build-image: ## Build the kro controller images using ko build
179-
$(WITH_GOFLAGS) KOCACHE=$(KOCACHE) KO_DOCKER_REPO="public.ecr.aws/kro/controller" \
179+
$(WITH_GOFLAGS) KOCACHE=$(KOCACHE) \
180180
ko build --bare github.com/kro-run/kro/cmd/controller \
181181
--push=false --tags ${RELEASE_VERSION} --sbom=none
182182

183183
.PHONY: publish
184-
publish-image: ## Publish the kro controller images to ECR
185-
$(WITH_GOFLAGS) KOCACHE=$(KOCACHE) KO_DOCKER_REPO="public.ecr.aws/kro/controller" \
184+
publish-image: ## Publish the kro controller images to ghcr.io
185+
$(WITH_GOFLAGS) KOCACHE=$(KOCACHE) \
186186
ko publish --bare github.com/kro-run/kro/cmd/controller \
187187
--tags ${RELEASE_VERSION} --sbom=none
188188

0 commit comments

Comments
 (0)