From 9effd16e3e438a6750735a82c5d33da214462988 Mon Sep 17 00:00:00 2001 From: Manuel Alejandro de Brito Fontes Date: Tue, 23 Jun 2020 19:17:16 -0400 Subject: [PATCH] Add cloudbuild job to build nginx image --- images/nginx/cloudbuild.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 images/nginx/cloudbuild.yaml diff --git a/images/nginx/cloudbuild.yaml b/images/nginx/cloudbuild.yaml new file mode 100644 index 000000000..46affed17 --- /dev/null +++ b/images/nginx/cloudbuild.yaml @@ -0,0 +1,21 @@ +timeout: 5400s +options: + substitution_option: ALLOW_LOOSE + # job builds a multi-arch docker image for amd64,arm,arm64 and s390x. + machineType: N1_HIGHCPU_32 +steps: + - name: gcr.io/k8s-testimages/gcb-docker-gcloud:v20200619-68869a4 + entrypoint: bash + env: + - DOCKER_CLI_EXPERIMENTAL=enabled + - TAG=$_GIT_TAG + - BASE_REF=$_PULL_BASE_REF + - REGISTRY=gcr.io/k8s-staging-ingress-nginx + args: + - -c + - | + gcloud auth configure-docker \ + && make build push +substitutions: + _GIT_TAG: "12345" + _PULL_BASE_REF: "master"