Skip to content

Commit

Permalink
Use buildx in cloudbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
wongma7 committed Dec 15, 2020
1 parent 63b94fb commit 99c4c0a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,26 @@ timeout: 1200s
steps:
- name: gcr.io/cloud-builders/docker
args:
- buildx
- build
- --tag=gcr.io/k8s-staging-provider-aws/aws-ebs-csi-driver:$_GIT_TAG
- --tag=gcr.io/k8s-staging-provider-aws/aws-ebs-csi-driver:latest
- --target=debian-base
- --platform=linux/arm64,linux/amd64
- --output="type=image,push=false"
- .
- --target=debian-base
- HOME=/root
- name: gcr.io/cloud-builders/docker
args:
- buildx
- build
- --tag=gcr.io/k8s-staging-provider-aws/aws-ebs-csi-driver:$_GIT_TAG-amazonlinux
- --tag=gcr.io/k8s-staging-provider-aws/aws-ebs-csi-driver:latest-amazonlinux
- --target=amazonlinux
- --platform=linux/arm64,linux/amd64
- --output="type=image,push=false"
- .
- --target=amazonlinux
- HOME=/root
images:
- "gcr.io/k8s-staging-provider-aws/aws-ebs-csi-driver:$_GIT_TAG"
- "gcr.io/k8s-staging-provider-aws/aws-ebs-csi-driver:latest"
Expand Down

0 comments on commit 99c4c0a

Please sign in to comment.