Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloud Build: Some chores. #11633

Merged
merged 13 commits into from
Aug 11, 2024
29 changes: 9 additions & 20 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,14 @@
# See https://cloud.google.com/cloud-build/docs/build-config

timeout: 18000s
options:
substitution_option: ALLOW_LOOSE
substitutions:
_PULL_BASE_SHA: "12345"
steps:
- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20211118-2f2d816b90'
entrypoint: bash
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240523-a15ad90fc9
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
- REPO_INFO=https://github.com/kubernetes/ingress-nginx
- COMMIT_SHA=$_PULL_BASE_SHA
- BUILD_ID=$BUILD_ID
- HOME=/root
- USER=root
- COMMIT_SHA=${_PULL_BASE_SHA}
- BUILD_ID=${BUILD_ID}
entrypoint: bash
args:
- -c
- |
gcloud auth configure-docker \
&& make release
substitutions:
_GIT_TAG: "12345"
_PULL_BASE_REF: "main"
_PULL_BASE_SHA: '12345'
- -c
- gcloud auth configure-docker && make release
timeout: 1800s
17 changes: 4 additions & 13 deletions images/cfssl/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
timeout: 600s
options:
substitution_option: ALLOW_LOOSE
steps:
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20211118-2f2d816b90
entrypoint: bash
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240523-a15ad90fc9
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
# set the home to /root explicitly to if using docker buildx
- HOME=/root
entrypoint: bash
args:
- -c
- |
gcloud auth configure-docker \
&& cd images && make NAME=cfssl push
- -c
- gcloud auth configure-docker && cd images && make NAME=cfssl push
3 changes: 0 additions & 3 deletions images/custom-error-pages/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion images/custom-error-pages/TAG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.0.3
v0.0.3
18 changes: 5 additions & 13 deletions images/custom-error-pages/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
timeout: 1800s
options:
substitution_option: ALLOW_LOOSE
steps:
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20211118-2f2d816b90
entrypoint: bash
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240523-a15ad90fc9
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
# set the home to /root explicitly to if using docker buildx
- HOME=/root
entrypoint: bash
args:
- -c
- |
gcloud auth configure-docker \
&& cd images/ && make NAME=custom-error-pages push
- -c
- gcloud auth configure-docker && cd images && make NAME=custom-error-pages push
timeout: 3600s
2 changes: 1 addition & 1 deletion images/e2e-test-echo/TAG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.0.3
v0.0.3
2 changes: 1 addition & 1 deletion images/ext-auth-example-authsvc/TAG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.0.3
v0.0.3
19 changes: 4 additions & 15 deletions images/ext-auth-example-authsvc/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
timeout: 1200s
options:
substitution_option: ALLOW_LOOSE
# job builds a multi-arch docker image for amd64,arm,arm64 and s390x.
machineType: E2_HIGHCPU_8
steps:
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20211118-2f2d816b90
entrypoint: bash
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240523-a15ad90fc9
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
# set the home to /root explicitly to if using docker buildx
- HOME=/root
entrypoint: bash
args:
- -c
- |
gcloud auth configure-docker \
&& cd images/ && make NAME=ext-auth-example-authsvc push
- -c
- gcloud auth configure-docker && cd images && make NAME=ext-auth-example-authsvc push
2 changes: 1 addition & 1 deletion images/fastcgi-helloserver/TAG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.0.3
v0.0.3
18 changes: 5 additions & 13 deletions images/fastcgi-helloserver/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
timeout: 1800s
options:
substitution_option: ALLOW_LOOSE
steps:
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20211118-2f2d816b90
entrypoint: bash
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240523-a15ad90fc9
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
# set the home to /root explicitly to if using docker buildx
- HOME=/root
entrypoint: bash
args:
- -c
- |
gcloud auth configure-docker \
&& cd images/ && make NAME=fastcgi-helloserver push
- -c
- gcloud auth configure-docker && cd images && make NAME=fastcgi-helloserver push
timeout: 3600s
2 changes: 1 addition & 1 deletion images/go-grpc-greeter-server/TAG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.0.3
v0.0.3
19 changes: 4 additions & 15 deletions images/go-grpc-greeter-server/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
timeout: 1200s
options:
substitution_option: ALLOW_LOOSE
# job builds a multi-arch docker image for amd64,arm,arm64 and s390x.
machineType: E2_HIGHCPU_8
steps:
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20211118-2f2d816b90
entrypoint: bash
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240523-a15ad90fc9
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
# set the home to /root explicitly to if using docker buildx
- HOME=/root
entrypoint: bash
args:
- -c
- |
gcloud auth configure-docker \
&& cd images/ && make NAME=go-grpc-greeter-server push
- -c
- gcloud auth configure-docker && cd images && make NAME=go-grpc-greeter-server push
2 changes: 1 addition & 1 deletion images/httpbun/TAG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.0.3
v0.0.3
20 changes: 5 additions & 15 deletions images/httpbun/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
timeout: 1200s
options:
substitution_option: ALLOW_LOOSE
# job builds a multi-arch docker image for amd64,arm,arm64 and s390x.
machineType: E2_HIGHCPU_8
steps:
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20211118-2f2d816b90
entrypoint: bash
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240523-a15ad90fc9
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
# set the home to /root explicitly to if using docker buildx
- HOME=/root
entrypoint: bash
args:
- -c
- |
gcloud auth configure-docker \
&& cd images/ && make NAME=httpbun push
- -c
- gcloud auth configure-docker && cd images && make NAME=httpbun push
timeout: 3600s
33 changes: 5 additions & 28 deletions images/kube-webhook-certgen/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,9 @@

# Copyright 2021 The Kubernetes Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

timeout: 10800s
options:
substitution_option: ALLOW_LOOSE
steps:
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20211118-2f2d816b90
entrypoint: bash
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240523-a15ad90fc9
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
# set the home to /root explicitly to if using docker buildx
- HOME=/root
entrypoint: bash
args:
- -c
- |
gcloud auth configure-docker \
&& cd images/ && make NAME=kube-webhook-certgen push
- -c
- gcloud auth configure-docker && cd images && make NAME=kube-webhook-certgen push
timeout: 1800s
17 changes: 6 additions & 11 deletions images/nginx-1.25/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
timeout: 10800s
options:
substitution_option: ALLOW_LOOSE
# job builds a multi-arch docker image for amd64,arm,arm64
# Increase machine type for multi-arch builds.
machineType: E2_HIGHCPU_32
steps:
- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20211118-2f2d816b90'
entrypoint: bash
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240523-a15ad90fc9
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
- HOME=/root
entrypoint: bash
args:
- -c
- |
gcloud auth configure-docker \
&& cd images/nginx-1.25 && make push
- -c
- gcloud auth configure-docker && cd images/nginx-1.25 && make push
timeout: 7200s
17 changes: 6 additions & 11 deletions images/nginx/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
timeout: 10800s
options:
substitution_option: ALLOW_LOOSE
# job builds a multi-arch docker image for amd64,arm,arm64 and s390x.
# Increase machine type for multi-arch builds.
machineType: E2_HIGHCPU_32
steps:
- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20211118-2f2d816b90'
entrypoint: bash
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240523-a15ad90fc9
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
- HOME=/root
entrypoint: bash
args:
- -c
- |
gcloud auth configure-docker \
&& cd images/nginx && make push
- -c
- gcloud auth configure-docker && cd images/nginx && make push
timeout: 7200s
44 changes: 0 additions & 44 deletions images/nginx/rc.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions images/opentelemetry/README.md

This file was deleted.

22 changes: 7 additions & 15 deletions images/opentelemetry/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
timeout: 10800s
options:
substitution_option: ALLOW_LOOSE
# job builds a multi-arch docker image for amd64,arm,arm64 and s390x.
machineType: E2_HIGHCPU_32
# Increase machine type for multi-arch builds.
machineType: E2_HIGHCPU_8
steps:
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20211118-2f2d816b90
entrypoint: bash
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240523-a15ad90fc9
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
# set the home to /root explicitly to if using docker buildx
- HOME=/root
entrypoint: bash
args:
- -c
- |
gcloud auth configure-docker \
&& cd images/opentelemetry && make NGINX_VERSION=1.25.3 push \
&& make NGINX_VERSION=1.21.6 push
- -c
- gcloud auth configure-docker && cd images/opentelemetry && make NGINX_VERSION=1.21.6 push && make NGINX_VERSION=1.25.3 push
timeout: 3600s
18 changes: 5 additions & 13 deletions images/test-runner/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
timeout: 3600s
options:
substitution_option: ALLOW_LOOSE
steps:
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20211118-2f2d816b90
entrypoint: bash
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240523-a15ad90fc9
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
- REGISTRY=gcr.io/k8s-staging-ingress-nginx
# default cloudbuild has HOME=/builder/home and docker buildx is in /root/.docker/cli-plugins/docker-buildx
# set the home to /root explicitly to if using docker buildx
- HOME=/root
entrypoint: bash
args:
- -c
- |
gcloud auth configure-docker \
&& cd images/test-runner && make push
- -c
- gcloud auth configure-docker && cd images/test-runner && make push
timeout: 1800s