@@ -101,16 +101,8 @@ push-etcd-backup-manifest:
101101 DOCKER_CLI_EXPERIMENTAL=enabled docker manifest push --purge \
102102 $(IMAGE_BASE ) etcd-backup:$(STABLE_DOCKER_TAG )
103103
104- .PHONY : push-images
105- push-images : push-etcd-manager push-etcd-dump push-etcd-backup
106- echo " pushed images"
107-
108- .PHONY : push-manifests
109- push-manifests : push-etcd-manager-manifest push-etcd-dump-manifest push-etcd-backup-manifest
110- echo " pushed manifests"
111-
112104.PHONY : push
113- push : push-images push-manifests
105+ push : push-etcd-manager push-etcd-manager-manifest
114106
115107.PHONY : gazelle
116108gazelle :
@@ -153,12 +145,32 @@ staticcheck-working:
153145 go list ./...
| grep -v
" etcd-manager/pkg/[cepv]" | xargs go run honnef.co/go/tools/cmd/
[email protected] 154146
155147.PHONY : ko-dist
156- ko-dist : ko-export-etcd-manager-slim-amd64 ko-export-etcd-manager-slim-arm64
148+ ko-dist : ko-export-etcd-manager-slim-amd64 ko-export-etcd-manager-slim-arm64 ko-export-etcd-backup-amd64 ko-export-etcd-backup-arm64 ko-export-etcd-dump-amd64 ko-export-etcd-dump-arm64
149+
150+ .PHONY : ko-export-etcd-backup-amd64 ko-export-etcd-backup-arm64
151+ ko-export-etcd-backup-amd64 ko-export-etcd-backup-arm64 : ko-export-etcd-backup-% :
152+ mkdir -p dist
153+ KO_DEFAULTBASEIMAGE=" debian:12-slim" KO_DOCKER_REPO=" registry.k8s.io/etcd-manager/etcd-backup" ${KO} build --tags ${STABLE_DOCKER_TAG} --platform=linux/$* -B --push=false --tarball=dist/etcd-backup-$* .tar ./cmd/etcd-backup/
154+ gzip -f dist/etcd-backup-$* .tar
155+
156+ .PHONY : ko-push-etcd-backup
157+ ko-push-etcd-backup :
158+ KO_DEFAULTBASEIMAGE=" debian:12-slim" KO_DOCKER_REPO=" ${IMAGE_BASE} etcd-backup" ${KO} build --tags ${STABLE_DOCKER_TAG} --platform=linux/amd64,linux/arm64 --bare ./cmd/etcd-backup/
159+
160+ .PHONY : ko-export-etcd-dump-amd64 ko-export-etcd-dump-arm64
161+ ko-export-etcd-dump-amd64 ko-export-etcd-dump-arm64 : ko-export-etcd-dump-% :
162+ mkdir -p dist
163+ KO_DEFAULTBASEIMAGE=" debian:12-slim" KO_DOCKER_REPO=" registry.k8s.io/etcd-manager/etcd-dump" ${KO} build --tags ${STABLE_DOCKER_TAG} --platform=linux/$* -B --push=false --tarball=dist/etcd-dump-$* .tar ./cmd/etcd-dump/
164+ gzip -f dist/etcd-dump-$* .tar
165+
166+ .PHONY : ko-push-etcd-dump
167+ ko-push-etcd-dump :
168+ KO_DEFAULTBASEIMAGE=" debian:12-slim" KO_DOCKER_REPO=" ${IMAGE_BASE} etcd-dump" ${KO} build --tags ${STABLE_DOCKER_TAG} --platform=linux/amd64,linux/arm64 --bare ./cmd/etcd-dump/
157169
158170.PHONY : ko-export-etcd-manager-slim-amd64 ko-export-etcd-manager-slim-arm64
159171ko-export-etcd-manager-slim-amd64 ko-export-etcd-manager-slim-arm64 : ko-export-etcd-manager-slim-% :
160172 mkdir -p dist
161- KO_DEFAULTBASEIMAGE=" debian:12-slim" KO_DOCKER_REPO=" registry.k8s.io/etcd-manager" ${KO} build --tags ${STABLE_DOCKER_TAG} --platform=linux/$* -B --push=false --tarball=dist/etcd-manager-slim-$* .tar ./cmd/etcd-manager/
173+ KO_DEFAULTBASEIMAGE=" debian:12-slim" KO_DOCKER_REPO=" registry.k8s.io/etcd-manager/etcd-manager-slim " ${KO} build --tags ${STABLE_DOCKER_TAG} --platform=linux/$* -B --push=false --tarball=dist/etcd-manager-slim-$* .tar ./cmd/etcd-manager/
162174 gzip -f dist/etcd-manager-slim-$* .tar
163175
164176.PHONY : ko-push-etcd-manager-slim
0 commit comments