Skip to content

Instantly share code, notes, and snippets.

@rmadhiapplitools
Last active September 17, 2020 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmadhiapplitools/1033521c2be4fe0b7dc89a968ff89f86 to your computer and use it in GitHub Desktop.
Save rmadhiapplitools/1033521c2be4fe0b7dc89a968ff89f86 to your computer and use it in GitHub Desktop.
Google cloudbuild
steps:
# Uses the docker build step to build an image called my-image '--build-arg','COMMIT_ID=$COMMIT_SHA'
- name: 'gcr.io/cloud-builders/docker'
args: ['build','-t', 'gcr.io/my-project/github.com/username/repository:$COMMIT_SHA', '.','--build-arg','COMMIT_ID=$COMMIT_SHA','--build-arg','Git_branch=$BRANCH_NAME']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment