File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ GOOS ?= $(shell go env GOOS)
2525GOARCH ?= $(shell go env GOARCH)
2626ORG := github.com/GoogleContainerTools
2727PROJECT := kaniko
28- REGISTRY? =gcr.io/kaniko-project
28+ IMAGE_REPO_NAME ?= "493416687123.dkr.ecr.us-east-1.amazonaws.com/external/kaniko-project/executor"
29+ REGISTRY ?= $(IMAGE_REPO_NAME )
30+ IMAGE? =latest
2931
3032REPOPATH ?= $(ORG ) /$(PROJECT )
3133VERSION_PACKAGE = $(REPOPATH ) /pkg/version
@@ -99,15 +101,9 @@ k8s-executor-build-push:
99101
100102.PHONY : images
101103images : DOCKER_BUILDKIT=1
102- images :
103- docker build ${BUILD_ARG} --build-arg=GOARCH=$(GOARCH ) -t $(REGISTRY ) /executor:latest -f deploy/Dockerfile .
104- docker build ${BUILD_ARG} --build-arg=GOARCH=$(GOARCH ) -t $(REGISTRY ) /executor:debug -f deploy/Dockerfile_debug .
105- docker build ${BUILD_ARG} --build-arg=GOARCH=$(GOARCH ) -t $(REGISTRY ) /executor:slim -f deploy/Dockerfile_slim .
106- docker build ${BUILD_ARG} --build-arg=GOARCH=$(GOARCH ) -t $(REGISTRY ) /warmer:latest -f deploy/Dockerfile_warmer .
104+ docker build ${BUILD_ARG} --build-arg=GOARCH=$(GOARCH ) -t $(REGISTRY ) /executor:$IMAGE -f deploy/Dockerfile .
107105
108106.PHONY : push
109107push :
110- docker push $(REGISTRY ) /executor:latest
111- docker push $(REGISTRY ) /executor:debug
112- docker push $(REGISTRY ) /executor:slim
113- docker push $(REGISTRY ) /warmer:latest
108+ docker push $(REGISTRY ) /executor:$IMAGE
109+
You can’t perform that action at this time.
0 commit comments