From 92213bac8d8221dc64b88ae26feb2eca8b65aac7 Mon Sep 17 00:00:00 2001 From: Priya Wadhwa Date: Wed, 16 May 2018 16:38:43 -0700 Subject: [PATCH] Add cloudbuild yaml for tagged releases --- deploy/cloudbuild-release.yaml | 12 ++++++++++++ deploy/{executor-release.yaml => cloudbuild.yaml} | 0 2 files changed, 12 insertions(+) create mode 100644 deploy/cloudbuild-release.yaml rename deploy/{executor-release.yaml => cloudbuild.yaml} (100%) diff --git a/deploy/cloudbuild-release.yaml b/deploy/cloudbuild-release.yaml new file mode 100644 index 000000000..789ec2159 --- /dev/null +++ b/deploy/cloudbuild-release.yaml @@ -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"] diff --git a/deploy/executor-release.yaml b/deploy/cloudbuild.yaml similarity index 100% rename from deploy/executor-release.yaml rename to deploy/cloudbuild.yaml