Skip to content

Commit 617705a

Browse files
authored
chore(build): Update cloudbuild.yaml file (spinnaker#3063)
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.
1 parent 511bff2 commit 617705a

File tree

2 files changed

+9
-20
lines changed

2 files changed

+9
-20
lines changed

cloudbuild-tagged.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

cloudbuild.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
steps:
2-
- name: 'spinnakerrelease/gradle_cache'
2+
- name: gcr.io/spinnaker-marketplace/gradle_cache
33
env: ["GRADLE_USER_HOME=/gradle_cache/.gradle"]
44
entrypoint: "bash"
5-
args: [ "-c", "./gradlew orca-web:installDist -x test"]
6-
- name: 'gcr.io/cloud-builders/docker'
7-
args: ["build", "-t", "gcr.io/$PROJECT_ID/$REPO_NAME:$COMMIT_SHA", "-t", "gcr.io/$PROJECT_ID/$REPO_NAME:latest", "-f", "Dockerfile.slim", "."]
5+
args: ["-c", "./gradlew orca-web:installDist -x test"]
6+
- name: gcr.io/cloud-builders/docker
7+
args: ["build", "-t", "gcr.io/$PROJECT_ID/$REPO_NAME:$TAG_NAME", "-f", "Dockerfile.slim", "."]
8+
env: ["GRADLE_USER_HOME=/gradle_cache/.gradle"]
89
images:
9-
- 'gcr.io/$PROJECT_ID/$REPO_NAME:$COMMIT_SHA'
10-
- 'gcr.io/$PROJECT_ID/$REPO_NAME:latest'
10+
- gcr.io/$PROJECT_ID/$REPO_NAME:$TAG_NAME
11+
timeout: 3600s
12+
options:
13+
machineType: N1_HIGHCPU_8

0 commit comments

Comments
 (0)