Skip to content

Commit 9283b87

Browse files
authored
Merge pull request #23021 from medyagh/autopauseimage3
infra: add auto-pause-hook image build & push target for registry.k8s.io in prow
2 parents 536ba38 + e8d5988 commit 9283b87

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# See https://cloud.google.com/cloud-build/docs/build-config
2+
options:
3+
substitution_option: ALLOW_LOOSE
4+
steps:
5+
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:latest
6+
env:
7+
- _GIT_TAG=$_GIT_TAG
8+
- _PULL_BASE_REF=$_PULL_BASE_REF
9+
args:
10+
- make
11+
- push-auto-pause-hook-image-prow
12+
substitutions:
13+
# _GIT_TAG will be filled with a git-based tag for the image, of the form vYYYYMMDD-hash, and
14+
# can be used as a substitution
15+
_GIT_TAG: '12345'
16+
# _PULL_BASE_REF will contain the ref that was pushed to to trigger this build -
17+
# a branch like 'master' or 'release-0.2', or a tag like 'v0.2'.
18+
_PULL_BASE_REF: 'master'

hack/prow/prow_images.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,8 @@ push-kicbase-image-prow:
3131
./hack/build_auto_pause.sh $(KICBASE_ARCH) $(CURDIR)/deploy/kicbase
3232
docker buildx build --push --platform $(PROW_IMAGE_PLATFORMS) \
3333
-t us-central1-docker.pkg.dev/k8s-staging-images/minikube/kicbase:$(_GIT_TAG) -t us-central1-docker.pkg.dev/k8s-staging-images/minikube/kicbase:latest -f deploy/kicbase/Dockerfile deploy/kicbase
34+
35+
.PHONY: push-auto-pause-hook-image-prow
36+
push-auto-pause-hook-image-prow:
37+
docker buildx build --push --platform $(PROW_IMAGE_PLATFORMS) \
38+
-t us-central1-docker.pkg.dev/k8s-staging-images/minikube/auto-pause-hook:$(_GIT_TAG) -t us-central1-docker.pkg.dev/k8s-staging-images/minikube/auto-pause-hook:latest -f deploy/addons/auto-pause/Dockerfile .

0 commit comments

Comments
 (0)