added cache layer to cloudbuild (#672)

v2
Jinesh 3 years ago committed by Jesus Federico
parent eb723be3d3
commit edc29ede02
  1. 2
      cloudbuild-staging.yaml
  2. 2
      cloudbuild.yaml

@ -13,6 +13,8 @@ steps:
'gcr.io/$PROJECT_ID/${_URL}:${BRANCH_NAME}.${SHORT_SHA}',
'-t',
'gcr.io/$PROJECT_ID/${_URL}:latest',
'--cache-from',
'gcr.io/$PROJECT_ID/${_URL}:latest',
'.']
- name: 'gcr.io/cloud-builders/kubectl'
args: [

@ -13,6 +13,8 @@ steps:
'gcr.io/$PROJECT_ID/${_URL}:${TAG_NAME}.${SHORT_SHA}',
'-t',
'gcr.io/$PROJECT_ID/${_URL}:latest',
'--cache-from',
'gcr.io/$PROJECT_ID/${_URL}:latest',
'.']
- name: 'gcr.io/cloud-builders/kubectl'
args: [