Created
December 3, 2018 02:37
-
-
Save post2web/94888656142846581b54b2166065a17c to your computer and use it in GitHub Desktop.
local run cloud build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# gcloud builds submit --config cloudbuild.yaml . | |
# docker run -v `pwd`:/workspace -w /workspace -it refresh-metadata | |
# gcloud components install docker-credential-gcr | |
# docker-credential-gcr configure-docker | |
# gcloud components install cloud-build-local | |
rm -fr /workspace/* | |
gsutil rm gs://ml-workflow-cicd/branch_metadata.json | |
# echo "This doesn't work as on the cloud" | |
# echo "" | |
# exit 1 | |
cloud-build-local \ | |
--config=../cloudbuild.yaml \ | |
--dryrun=false \ | |
--write-workspace / \ | |
--no-source | |
gsutil rm gs://ml-workflow-cicd/branch_metadata.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment