update cloud build (#8349)
This commit is contained in:
parent
9602fc193d
commit
40bb6c3d2e
2 changed files with 5 additions and 7 deletions
|
@ -4,21 +4,18 @@ options:
|
|||
# job builds a multi-arch docker image for amd64,arm,arm64 and s390x.
|
||||
machineType: N1_HIGHCPU_32
|
||||
steps:
|
||||
- name: gcr.io/k8s-staging-test-infra/image-builder:v20220309-4b32800b2d
|
||||
- name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20211118-2f2d816b90'
|
||||
entrypoint: bash
|
||||
env:
|
||||
- DOCKER_CLI_EXPERIMENTAL=enabled
|
||||
- COMMIT=$SHORT_SHA
|
||||
- BASE_REF=$_PULL_BASE_REF
|
||||
- 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
|
||||
- HOME=/root
|
||||
args:
|
||||
- -c
|
||||
- |
|
||||
gcloud auth configure-docker \
|
||||
&& TAG=v$(date "+%Y%m%d")-${COMMIT} make push
|
||||
&& TAG=v$(date "+%Y%m%d")-$(git rev-parse --short HEAD) make push
|
||||
substitutions:
|
||||
_GIT_TAG: "12345"
|
||||
_PULL_BASE_REF: "master"
|
||||
|
|
|
@ -41,7 +41,8 @@ RUN apk update \
|
|||
pcre \
|
||||
zlib \
|
||||
geoip \
|
||||
curl ca-certificates \
|
||||
curl \
|
||||
ca-certificates \
|
||||
patch \
|
||||
yajl \
|
||||
lmdb \
|
||||
|
|
Loading…
Reference in a new issue