mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Add cloudbuild.yaml for etcd
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
parent
c225d13abc
commit
c1c2b663f0
@ -14,6 +14,9 @@
|
||||
|
||||
FROM BASEIMAGE as builder
|
||||
|
||||
# This image needs bash for running "migrate-if-needed.sh". Instead of a full debian image
|
||||
# we use just the bash-static and we wrap bash-static into a distroless image instead of
|
||||
# a full debian image
|
||||
RUN apt-get update -y \
|
||||
&& apt-get -yy -q install --no-install-recommends --no-install-suggests --fix-missing \
|
||||
bash-static
|
||||
|
22
cluster/images/etcd/cloudbuild.yaml
Normal file
22
cluster/images/etcd/cloudbuild.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
# 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-testimages/gcb-docker-gcloud:v20200422-b25d964'
|
||||
entrypoint: 'bash'
|
||||
dir: ./cluster/images/etcd
|
||||
env:
|
||||
- DOCKER_CLI_EXPERIMENTAL=enabled
|
||||
- REGISTRY=gcr.io/$PROJECT_ID
|
||||
- PUSH_REGISTRY=gcr.io/$PROJECT_ID
|
||||
- IMAGE=gcr.io/$PROJECT_ID/etcd
|
||||
- BUILD_IMAGE=debian-build
|
||||
- TMPDIR=/workspace
|
||||
args:
|
||||
- '-c'
|
||||
- |
|
||||
gcloud auth configure-docker \
|
||||
&& docker run --rm --privileged linuxkit/binfmt:4ea3b9b0938cbd19834c096aa31ff475cc75d281 \
|
||||
&& make all-push
|
Loading…
Reference in New Issue
Block a user