Skip to content

Commit

Permalink
Merge pull request #3 from searchspring/remove-buildx
Browse files Browse the repository at this point in the history
Remove buildx
  • Loading branch information
sdsmart authored Apr 12, 2023
2 parents 605ec43 + cb5da56 commit c7f6547
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,12 @@ steps:
'DOCKER_BUILDKIT=1 docker build -t gcr.io/$PROJECT_ID/$REPO_NAME:$TAG_NAME --build-arg TOKEN=$$TOKEN . --file=./Dockerfile' ]
secretEnv:
- 'TOKEN'
- name: 'gcr.io/cloud-builders/docker'
args: ['run', '--privileged', 'linuxkit/binfmt:a17941b47f5cb262638cfb49ffc59ac5ac2bf334']
- name: 'gcr.io/cloud-builders/docker'
args: ['buildx', 'create', '--name', 'my-builder']
- name: 'gcr.io/cloud-builders/docker'
args: ['buildx', 'use', 'my-builder']
- name: 'gcr.io/cloud-builders/docker'
args: ['buildx', 'inspect', '--bootstrap']
- name: 'gcr.io/cloud-builders/docker'
entrypoint: 'bash'
args: ['-c','buildx build --platform $_DOCKER_BUILDX_PLATFORMS --build-arg TOKEN=$$TOKEN -t gcr.io/$PROJECT_ID/$REPO_NAME:$TAG_NAME . --push --file=./Dockerfile']
secretEnv:
- 'TOKEN'
images:
- 'gcr.io/$PROJECT_ID/$REPO_NAME:$TAG_NAME'
timeout: 6000s
options:
env:
- 'DOCKER_CLI_EXPERIMENTAL=enabled'
substitutions:
_DOCKER_BUILDX_PLATFORMS: "linux/amd64,linux/arm64"
availableSecrets:
secretManager:
- versionName: projects/searchspring-devops/secrets/machine-user-github-token/versions/latest
Expand Down

0 comments on commit c7f6547

Please sign in to comment.