File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change 1
1
REGISTRY? =gcr.io/k8s-minikube
2
- VERSION =v0.0.3
2
+ VERSION =20210202-test2
3
+ GOOS? =$(shell go env GOOS)
3
4
4
5
build : # # Build the gcp-auth-webhook binary
5
- CGO_ENABLED=0 GOOS=linux go build -o out/gcp-auth-webhook -ldflags= $( PROVISIONER_LDFLAGS ) server.go
6
+ CGO_ENABLED=0 GOOS=linux go build -o out/gcp-auth-webhook server.go
6
7
7
8
.PHONY : image
8
- image : build # # Create the multiarch manifest builder
9
- env DOCKER_CLI_EXPERIMENTAL=enabled docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
10
- env DOCKER_CLI_EXPERIMENTAL=enabled docker buildx rm --builder gcp-auth-builder || true
11
- env DOCKER_CLI_EXPERIMENTAL=enabled docker buildx create --name gcp-auth-builder --use
12
-
13
-
14
- .PHONY : push
15
- push : image # # Push the manifest and images up to the registry
16
- env DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --platform linux/arm64,linux/amd64 -t $(REGISTRY ) /gcp-auth-webhook:$(VERSION ) --push -f Dockerfile ./out
17
-
9
+ image : build # # Create and push multiarch manifest and images
10
+ curl -L https://github.com/google/ko/releases/download/v0.8.0/ko_0.8.0_$(GOOS ) _x86_64.tar.gz | tar xzf - ko && chmod +x ./ko
11
+ KO_DOCKER_REPO=$(REGISTRY ) ./ko publish -B . --platform all -t $(VERSION )
12
+ rm ./ko
You can’t perform that action at this time.
0 commit comments