Skip to content

Commit

Permalink
Allow scripts/verify to consume parameters from GCS (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcanaa authored Nov 3, 2020
1 parent 76f5b44 commit 4ecf535
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/verify
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,14 @@ docker run \
--rm "${deployer}" \
-c 'cat /data/schema.yaml' \
> /data/schema.yaml

# If parameters is a gcs file, use the content of the file instead
if [[ "$parameters" = "gs://"* ]]; then
echo "Using parameters from $parameters"
parameters="$(gsutil cat $parameters)"
echo "$parameters"
fi

echo "$parameters" \
| json2yaml \
> /data/values.yaml
Expand Down

0 comments on commit 4ecf535

Please sign in to comment.