Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (21 sloc) 557 Bytes
steps:
- name: gcr.io/cloud-builders/docker
entrypoint: bash
args:
- -xce
- docker pull gcr.io/$PROJECT_ID-public/$REPO_NAME:$BRANCH_NAME || true
- name: gcr.io/cloud-builders/docker
args:
- build
- --pull
- --cache-from
- gcr.io/$PROJECT_ID-public/$REPO_NAME:$BRANCH_NAME
- -t
- gcr.io/$PROJECT_ID-public/$REPO_NAME:$COMMIT_SHA
- -t
- gcr.io/$PROJECT_ID-public/$REPO_NAME:$BRANCH_NAME
- .
images:
- gcr.io/$PROJECT_ID-public/$REPO_NAME:$COMMIT_SHA
- gcr.io/$PROJECT_ID-public/$REPO_NAME:$BRANCH_NAME
# TODO GC