From e99b6ffd6c80158825d4a70bf8ea13ed04ce39b8 Mon Sep 17 00:00:00 2001 From: Travis Tomsu Date: Mon, 10 Jul 2017 10:27:26 -0400 Subject: [PATCH] chore(nightly build): Adds cloudbuild-tagged.yml to support nightly builds (#420) --- cloudbuild-tagged.yaml | 16 ++++++++++++++++ cloudbuild.yaml | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 cloudbuild-tagged.yaml diff --git a/cloudbuild-tagged.yaml b/cloudbuild-tagged.yaml new file mode 100644 index 0000000000..a0b8f5479b --- /dev/null +++ b/cloudbuild-tagged.yaml @@ -0,0 +1,16 @@ +steps: +- name: 'spinnakerrelease/gradle_cache' + env: ["GRADLE_USER_HOME=/gradle_cache/.gradle"] + entrypoint: "bash" + args: [ "-c", "./gradlew gate-web:installDist -x test -Prelease.version=$TAG_NAME"] +- name: 'gcr.io/cloud-builders/docker' + args: ["build", + "-t", "gcr.io/$PROJECT_ID/$REPO_NAME:$COMMIT_SHA", + "-t", "gcr.io/$PROJECT_ID/$REPO_NAME:latest", + "-t", "gcr.io/$PROJECT_ID/$REPO_NAME:$TAG_NAME", + "-f", "Dockerfile.slim", + "."] +images: +- 'gcr.io/$PROJECT_ID/$REPO_NAME:$COMMIT_SHA' +- 'gcr.io/$PROJECT_ID/$REPO_NAME:latest' +- 'gcr.io/$PROJECT_ID/$REPO_NAME:$TAG_NAME' diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 14828be47f..5b7c2038c3 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -1,6 +1,6 @@ steps: -- name: 'java:8' - env: ["GRADLE_USER_HOME=cache"] +- name: 'spinnakerrelease/gradle_cache' + env: ["GRADLE_USER_HOME=/gradle_cache/.gradle"] entrypoint: "bash" args: [ "-c", "./gradlew gate-web:installDist -x test"] - name: 'gcr.io/cloud-builders/docker'