mirror of
https://github.com/google/nomulus.git
synced 2025-08-05 09:21:49 +02:00
Work around Spinnaker issue wrt variables (#465)
* Work around Spinnaker issue wrt variables Cloud Build variable reference need to stay from the ${var} pattern to prevent Spinnaker from trying to resolve it. In all files that are used by Spinnaker, we change variable reference to the $var form. We made the minimum amount of change possible, and will review this issue after the permanent solution is available.
This commit is contained in:
parent
daaf231d39
commit
ce2f98f680
4 changed files with 55 additions and 26 deletions
|
@ -9,16 +9,23 @@
|
|||
#
|
||||
# To trigger a build automatically, follow the instructions below and add a trigger:
|
||||
# https://cloud.google.com/cloud-build/docs/running-builds/automate-builds
|
||||
#
|
||||
# Note: to work around issue in Spinnaker's 'Deployment Manifest' stage,
|
||||
# variable references must avoid the ${var} format. Valid formats include
|
||||
# $var or ${"${var}"}. This file use the former. Since TAG_NAME is
|
||||
# expanded in the copies sent to Spinnaker, we preserve the brackets around
|
||||
# them for safe pattern matching during release.
|
||||
# See https://github.com/spinnaker/spinnaker/issues/3028 for more information.
|
||||
steps:
|
||||
# Rsync the folder.
|
||||
- name: 'gcr.io/${PROJECT_ID}/builder:latest'
|
||||
- name: 'gcr.io/$PROJECT_ID/builder:latest'
|
||||
args:
|
||||
- gsutil
|
||||
- -m
|
||||
- rsync
|
||||
- -d
|
||||
- gs://${PROJECT_ID}-deploy/${TAG_NAME}
|
||||
- gs://${PROJECT_ID}-deploy/live
|
||||
- gs://$PROJECT_ID-deploy/${TAG_NAME}
|
||||
- gs://$PROJECT_ID-deploy/live
|
||||
timeout: 3600s
|
||||
options:
|
||||
machineType: 'N1_HIGHCPU_8'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue