Skip to content

Commit

Permalink
chore(build): Update cloudbuild.yaml file (spinnaker#3063)
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 authored Jul 26, 2019
1 parent 511bff2 commit 617705a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
14 changes: 0 additions & 14 deletions cloudbuild-tagged.yaml

This file was deleted.

15 changes: 9 additions & 6 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
steps:
- name: 'spinnakerrelease/gradle_cache'
- name: gcr.io/spinnaker-marketplace/gradle_cache
env: ["GRADLE_USER_HOME=/gradle_cache/.gradle"]
entrypoint: "bash"
args: [ "-c", "./gradlew orca-web:installDist -x test"]
- 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", "."]
args: ["-c", "./gradlew orca-web:installDist -x test"]
- 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'
- gcr.io/$PROJECT_ID/$REPO_NAME:$TAG_NAME
timeout: 3600s
options:
machineType: N1_HIGHCPU_8

0 comments on commit 617705a

Please sign in to comment.