Skip to content

Commit

Permalink
chore(nightly build): Adds cloudbuild-tagged.yml to support nightly b…
Browse files Browse the repository at this point in the history
…uilds (spinnaker#420)
  • Loading branch information
Travis Tomsu authored and danielpeach committed May 24, 2018
1 parent e301366 commit e99b6ff
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions cloudbuild-tagged.yaml
Original file line number Diff line number Diff line change
@@ -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'
4 changes: 2 additions & 2 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit e99b6ff

Please sign in to comment.