Skip to content

Commit

Permalink
images/git: Build for arm64
Browse files Browse the repository at this point in the history
This commit switches the builder base image used for building the git
image to `gcr.io/k8s-testimages/gcb-docker-gcloud` in order to do
multi-arch (amd64 and arm64) builds via `docker buildx build`, yielding
a multi-arch manifest.
  • Loading branch information
LorbusChris committed Jun 18, 2021
1 parent 6acffda commit 22146d8
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions images/git/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
steps:
- name: gcr.io/cloud-builders/docker
- name: gcr.io/k8s-testimages/gcb-docker-gcloud
entrypoint: /buildx-entrypoint
args:
- build
- -t
- gcr.io/$PROJECT_ID/git:$_GIT_TAG
- --tag=gcr.io/$PROJECT_ID/git:$_GIT_TAG
- --platform=linux/amd64,linux/arm64/v8
- --build-arg=IMAGE_ARG=gcr.io/$PROJECT_ID/git:$_GIT_TAG
- --push
- .
dir: .
- name: gcr.io/cloud-builders/docker
- name: gcr.io/k8s-testimages/gcb-docker-gcloud
entrypoint: gcloud
args:
- tag
- container
- images
- add-tag
- gcr.io/$PROJECT_ID/git:$_GIT_TAG
- gcr.io/$PROJECT_ID/git:latest
substitutions:
_GIT_TAG: '12345'
images:
- 'gcr.io/$PROJECT_ID/git:$_GIT_TAG'
- 'gcr.io/$PROJECT_ID/git:latest'

0 comments on commit 22146d8

Please sign in to comment.