this is a staging repository, which has lower security than registry.k8s.io, so we should REALLY be pinning it. TODO: This is one of the few places we still depend on GCR to build things. We should consider promoting this image to registry.k8s.io or using a different image.
21 lines
655 B
YAML
21 lines
655 B
YAML
# See https://cloud.google.com/cloud-build/docs/build-config
|
|
timeout: 1200s
|
|
options:
|
|
substitution_option: ALLOW_LOOSE
|
|
machineType: 'N1_HIGHCPU_8'
|
|
steps:
|
|
- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240523-a15ad90fc9@sha256:bb04162508c2c61637eae700a0d8e8c8be8f2d4c831d2b75e59db2d4dd6cf75d'
|
|
entrypoint: 'bash'
|
|
dir: ./build/pause
|
|
env:
|
|
- DOCKER_CLI_EXPERIMENTAL=enabled
|
|
- REGISTRY=gcr.io/$PROJECT_ID
|
|
- IMAGE=gcr.io/$PROJECT_ID/pause
|
|
- HOME=/root
|
|
args:
|
|
- '-c'
|
|
- |
|
|
gcloud auth configure-docker \
|
|
&& docker buildx create --name img-builder --use \
|
|
&& make all-push
|