Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use buildx in cloudbuild #658

Merged
merged 1 commit into from
Dec 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- build
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we still need this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh gotcha dockerx 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