Skip to content

Commit 1330c06

Browse files
Cloud Build: Some chores. (#11757)
* Cloud Build: Remove comment. * Cloud Build: Add newlines at EOF. * Cloud Build: Align comment. * Cloud Build: Remove trailing slash. * Cloud Build: Remove quotes. * Cloud Build: Align indentation. * Cloud Build: Improve quotes. * Cloud Build: Put arguments in one line. * Cloud Build: Bump image. * Cloud Build: Reorder entrypoint. * Cloud Build: Adjust timeouts. * Cloud Build: Remove useless files. * Cloud Build: Remove `substitution_option`. --------- Co-authored-by: Marco Ebert <[email protected]>
1 parent 9585eb3 commit 1330c06

File tree

21 files changed

+71
-240
lines changed

21 files changed

+71
-240
lines changed

cloudbuild.yaml

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,14 @@
1-
# See https://cloud.google.com/cloud-build/docs/build-config
2-
3-
timeout: 18000s
4-
options:
5-
substitution_option: ALLOW_LOOSE
1+
substitutions:
2+
_PULL_BASE_SHA: "12345"
63
steps:
7-
- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20211118-2f2d816b90'
8-
entrypoint: bash
4+
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240523-a15ad90fc9
95
env:
10-
- DOCKER_CLI_EXPERIMENTAL=enabled
116
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
127
- REPO_INFO=https://github.com/kubernetes/ingress-nginx
13-
- COMMIT_SHA=$_PULL_BASE_SHA
14-
- BUILD_ID=$BUILD_ID
15-
- HOME=/root
16-
- USER=root
8+
- COMMIT_SHA=${_PULL_BASE_SHA}
9+
- BUILD_ID=${BUILD_ID}
10+
entrypoint: bash
1711
args:
18-
- -c
19-
- |
20-
gcloud auth configure-docker \
21-
&& make release
22-
substitutions:
23-
_GIT_TAG: "12345"
24-
_PULL_BASE_REF: "main"
25-
_PULL_BASE_SHA: '12345'
12+
- -c
13+
- gcloud auth configure-docker && make release
14+
timeout: 1800s

images/cfssl/cloudbuild.yaml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,8 @@
1-
timeout: 600s
2-
options:
3-
substitution_option: ALLOW_LOOSE
41
steps:
5-
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20211118-2f2d816b90
6-
entrypoint: bash
2+
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240523-a15ad90fc9
73
env:
8-
- DOCKER_CLI_EXPERIMENTAL=enabled
94
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
10-
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
11-
# set the home to /root explicitly to if using docker buildx
12-
- HOME=/root
5+
entrypoint: bash
136
args:
14-
- -c
15-
- |
16-
gcloud auth configure-docker \
17-
&& cd images && make NAME=cfssl push
7+
- -c
8+
- gcloud auth configure-docker && cd images && make NAME=cfssl push

images/custom-error-pages/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

images/custom-error-pages/TAG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.0.3
1+
v0.0.3
Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1-
timeout: 1800s
2-
options:
3-
substitution_option: ALLOW_LOOSE
41
steps:
5-
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20211118-2f2d816b90
6-
entrypoint: bash
2+
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240523-a15ad90fc9
73
env:
8-
- DOCKER_CLI_EXPERIMENTAL=enabled
94
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
10-
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
11-
# set the home to /root explicitly to if using docker buildx
12-
- HOME=/root
5+
entrypoint: bash
136
args:
14-
- -c
15-
- |
16-
gcloud auth configure-docker \
17-
&& cd images/ && make NAME=custom-error-pages push
7+
- -c
8+
- gcloud auth configure-docker && cd images && make NAME=custom-error-pages push
9+
timeout: 3600s

images/e2e-test-echo/TAG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.0.3
1+
v0.0.3
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.0.3
1+
v0.0.3
Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
1-
timeout: 1200s
2-
options:
3-
substitution_option: ALLOW_LOOSE
4-
# job builds a multi-arch docker image for amd64,arm,arm64 and s390x.
5-
machineType: E2_HIGHCPU_8
61
steps:
7-
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20211118-2f2d816b90
8-
entrypoint: bash
2+
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240523-a15ad90fc9
93
env:
10-
- DOCKER_CLI_EXPERIMENTAL=enabled
114
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
12-
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
13-
# set the home to /root explicitly to if using docker buildx
14-
- HOME=/root
5+
entrypoint: bash
156
args:
16-
- -c
17-
- |
18-
gcloud auth configure-docker \
19-
&& cd images/ && make NAME=ext-auth-example-authsvc push
7+
- -c
8+
- gcloud auth configure-docker && cd images && make NAME=ext-auth-example-authsvc push

images/fastcgi-helloserver/TAG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.0.3
1+
v0.0.3
Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1-
timeout: 1800s
2-
options:
3-
substitution_option: ALLOW_LOOSE
41
steps:
5-
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20211118-2f2d816b90
6-
entrypoint: bash
2+
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240523-a15ad90fc9
73
env:
8-
- DOCKER_CLI_EXPERIMENTAL=enabled
94
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
10-
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
11-
# set the home to /root explicitly to if using docker buildx
12-
- HOME=/root
5+
entrypoint: bash
136
args:
14-
- -c
15-
- |
16-
gcloud auth configure-docker \
17-
&& cd images/ && make NAME=fastcgi-helloserver push
7+
- -c
8+
- gcloud auth configure-docker && cd images && make NAME=fastcgi-helloserver push
9+
timeout: 3600s

0 commit comments

Comments
 (0)