Add cloudbuild yaml for tagged releases

This commit is contained in:
Priya Wadhwa 2018-05-16 16:38:43 -07:00
parent 347d835781
commit 92213bac8d
No known key found for this signature in database
GPG Key ID: 0D0DAFD8F7AA73AE
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
# This cloudbuild is run on the creation of new tags, which should signify releases.
steps:
# First, build kaniko
- name: "gcr.io/cloud-builders/docker"
args: ["build", "-f", "deploy/Dockerfile",
"-t", "gcr.io/kaniko-project/executor:$TAG_NAME", "."]
# Then, we want to build kaniko:debug
- name: "gcr.io/cloud-builders/docker"
args: ["build", "-f", "deploy/Dockerfile_debug",
"-t", "gcr.io/kaniko-project/executor:debug-$TAG_NAME", "."]
images: ["gcr.io/kaniko-project/executor:$TAG_NAME",
"gcr.io/kaniko-project/executor:debug-$TAG_NAME"]