Skip to content

Commit

Permalink
chore(build): Update cloudbuild.yaml file (#7282)
Browse files Browse the repository at this point in the history
The currently checked-in Google Cloud Build configs have not been maintained and
are no longer used when producing the official Spinnaker releases. Instead, the
build process generates a GCB config on-the-fly and uses that.

To make the process more clear and make it easier for others to reproduce the
builds, commit the GCB config that is auto-generated to the repo. Also, delete
the unused cloudbuild-tagged.yaml.
  • Loading branch information
ezimanyi committed Jul 26, 2019
1 parent 682763d commit 183fb95
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 23 deletions.
14 changes: 0 additions & 14 deletions cloudbuild-tagged.yaml

This file was deleted.

20 changes: 11 additions & 9 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
steps:
- name: 'openjdk:8-stretch'
env: ["GRADLE_USER_HOME=cache"]
entrypoint: "bash"
args: [ "-c", "./gradlew build -PskipTests"]
- 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", "-f", "Dockerfile.slim", "."]
- name: gcr.io/spinnaker-marketplace/gradle_cache
env: ['GRADLE_USER_HOME=/gradle_cache/.gradle']
entrypoint: 'bash'
args: ['-c', './gradlew build -PskipTests']
- name: gcr.io/cloud-builders/docker
args: ['build', '-t', 'gcr.io/$PROJECT_ID/$REPO_NAME:$TAG_NAME', '-f', 'Dockerfile.slim', '.']
env: ['GRADLE_USER_HOME=/gradle_cache/.gradle']
images:
- 'gcr.io/$PROJECT_ID/$REPO_NAME:$COMMIT_SHA'
- 'gcr.io/$PROJECT_ID/$REPO_NAME:latest'
timeout: 15m
- gcr.io/$PROJECT_ID/$REPO_NAME:$TAG_NAME
timeout: 3600s
options:
machineType: N1_HIGHCPU_8

0 comments on commit 183fb95

Please sign in to comment.