File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515# Default cloudbuild.yaml for Cloud Shell custom images.
1616# This file is used by the Cloud Build trigger that builds this image.
1717
18+ substitutions :
19+ _IMAGE_TAG : ' ${COMMIT_SHA}'
20+
1821steps :
1922 - name : " gcr.io/cloud-builders/docker"
2023 args :
2124 [
2225 " build" ,
2326 " -t" ,
24- " gcr.io/$PROJECT_ID/button" ,
27+ " gcr.io/$PROJECT_ID/button:latest " ,
2528 " -t" ,
26- " gcr.io/$PROJECT_ID/button:public-image-${COMMIT_SHA }" ,
29+ " gcr.io/$PROJECT_ID/button:public-image-${_IMAGE_TAG }" ,
2730 " ." ,
2831 ]
2932 - name : " gcr.io/cloudshell-images/custom-image-validation"
3033 args : ["image_test.py", "--image", "gcr.io/$PROJECT_ID/button"]
34+
3135images :
32- - " gcr.io/$PROJECT_ID/button"
33- - " gcr.io/$PROJECT_ID/button:public-image-${COMMIT_SHA}"
36+ - " gcr.io/$PROJECT_ID/button:latest"
37+ - " gcr.io/$PROJECT_ID/button:public-image-${_IMAGE_TAG}"
38+
3439timeout : " 3600s"
40+
3541options :
3642 machineType : " N1_HIGHCPU_8"
43+ dynamicSubstitutions : true
You can’t perform that action at this time.
0 commit comments