Add cloudbuild.yaml for etcd

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
Davanum Srinivas 2020-05-17 22:23:50 -04:00
parent c225d13abc
commit c1c2b663f0
No known key found for this signature in database
GPG Key ID: 80D83A796103BF59
2 changed files with 25 additions and 0 deletions

View File

@ -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

View 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