Skip to content

Commit

Permalink
images/git: Build for arm64
Browse files Browse the repository at this point in the history
This commit adds a Google Cloud Build definition for building git
arm64 images and pushing them as a manifest list together with their
amd64 counterparts.
  • Loading branch information
LorbusChris committed Jun 7, 2021
1 parent ae26658 commit b2adebc
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion images/git/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,29 @@ steps:
dir: .
- name: gcr.io/cloud-builders/docker
args:
- tag
- build
- -t
- gcr.io/$PROJECT_ID/git:$_GIT_TAG-arm64
- --build-arg=ARCH=arm64
- --build-arg=IMAGE_ARG=gcr.io/$PROJECT_ID/git:$_GIT_TAG-arm64
- .
- name: 'gcr.io/cloud-builders/docker'
env: ['DOCKER_CLI_EXPERIMENTAL=enabled']
args:
- manifest
- create
- gcr.io/$PROJECT_ID/git:latest
- gcr.io/$PROJECT_ID/git:$_GIT_TAG
- gcr.io/$PROJECT_ID/git:$_GIT_TAG-arm64
- name: 'gcr.io/cloud-builders/docker'
env: ['DOCKER_CLI_EXPERIMENTAL=enabled']
args:
- manifest
- push
- gcr.io/$PROJECT_ID/git:latest
substitutions:
_GIT_TAG: '12345'
images:
- 'gcr.io/$PROJECT_ID/git:$_GIT_TAG'
- 'gcr.io/$PROJECT_ID/git:$_GIT_TAG-arm64'
- 'gcr.io/$PROJECT_ID/git:latest'

0 comments on commit b2adebc

Please sign in to comment.