-
-
Save rmadhiapplitools/1033521c2be4fe0b7dc89a968ff89f86 to your computer and use it in GitHub Desktop.
Google cloudbuild
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
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