| 1 | timeout: 9000s |
| 2 | options: |
| 3 | substitution_option: ALLOW_LOOSE |
| 4 | steps: |
| 5 | - name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20211118-2f2d816b90' |
| 6 | entrypoint: bash |
| 7 | env: |
| 8 | - TAG=$_GIT_TAG |
| 9 | - BASE_REF=$_PULL_BASE_REF |
| 10 | - DOCKER_CLI_EXPERIMENTAL=enabled |
| 11 | # default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx |
| 12 | # set the home to /root explicitly to if using docker buildx |
| 13 | - HOME=/root |
| 14 | args: |
| 15 | - '-c' |
| 16 | - | |
| 17 | gcloud auth configure-docker \ |
| 18 | && make release-staging |
| 19 | substitutions: |
| 20 | # _GIT_TAG will be filled with a git-based tag for the image, of the form vYYYYMMDD-hash, and |
| 21 | # can be used as a substitution |
| 22 | _GIT_TAG: '12345' |
| 23 | _PULL_BASE_REF: 'dev' |