Skip to content

Instantly share code, notes, and snippets.

@post2web
Created December 3, 2018 02:37
Show Gist options
  • Save post2web/94888656142846581b54b2166065a17c to your computer and use it in GitHub Desktop.
Save post2web/94888656142846581b54b2166065a17c to your computer and use it in GitHub Desktop.
local run cloud build
#!/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