Skip to content

Commit

Permalink
WIP: Use gcb-docker-gcloud base
Browse files Browse the repository at this point in the history
  • Loading branch information
LorbusChris committed Jun 17, 2021
1 parent 6bb3beb commit 2a13598
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions images/alpine/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
steps:
- name: gcr.io/k8s-staging-test-infra/docker-buildx:latest
- name: gcr.io/k8s-staging-test-infra/gcb-docker-gcloud
entrypoint:
args:
- build
- --tag=gcr.io/$PROJECT_ID/alpine:$_GIT_TAG
- --tag=gcr.io/$PROJECT_ID/alpine:latest
- --platform=linux/amd64,linux/arm64/v8
- --build-arg=IMAGE_ARG=gcr.io/$PROJECT_ID/alpine:$_GIT_TAG
- --push
- .
- -c
- |
/register --reset -p yes && \
/root/.docker/cli-plugins/docker-buildx create --use && \
/root/.docker/cli-plugins/docker-buildx \
build \
--tag=gcr.io/$PROJECT_ID/alpine:$_GIT_TAG \
--tag=gcr.io/$PROJECT_ID/alpine:latest \
--platform=linux/amd64,linux/arm64/v8 \
--build-arg=IMAGE_ARG=gcr.io/$PROJECT_ID/alpine:$_GIT_TAG \
--push \
.
dir: .
substitutions:
_GIT_TAG: '12345'

0 comments on commit 2a13598

Please sign in to comment.