Skip to content

Commit

Permalink
chore(build): Update cloudbuild.yaml file (#611)
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 56e225a commit 0213877
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
14 changes: 0 additions & 14 deletions cloudbuild-tagged.yaml

This file was deleted.

18 changes: 12 additions & 6 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
steps:
- name: 'spinnakerrelease/gradle_cache'
- name: gcr.io/spinnaker-marketplace/gradle_cache
env: ["GRADLE_USER_HOME=/gradle_cache/.gradle"]
entrypoint: "bash"
args: [ "-c", "./gradlew echo-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 echo-web:installDist -x test"]
- name: gcr.io/cloud-builders/docker
# Exclude echo from the slim docker builds since the alpine base image
# (which is used in the slim builds) is missing a package gRPC needs to
# establish pub/sub listeners.
args: ["build", "-t", "gcr.io/$PROJECT_ID/$REPO_NAME:$TAG_NAME", "-f", "Dockerfile", "."]
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 0213877

Please sign in to comment.