2019-07-04: Update
Ended up using
options:
env:
Not perfect since doesn't allow variable in build steps but atleast environments are covered.
Problem
GCP's Cloud build
is not substituting variables in substitutions
section.
Is there a way to have those substitutions applied?
Example snippet
substitutions:
_HUGO_VERSION: "0.55.6"
_HUGO_IMG: gcr.io/$PROJECT_ID/hugo:$_HUGO_VERSION
Expectation
To have $_HUGO_VERSION
and $PROJECT_ID
replaced with values, to get:
_HUGO_IMG=gcr.io/foo/hugo:0.55.6
Actual
But the value for _HUGO_IMG
is taken literally:
_HUGO_IMG=gcr.io/$PROJECT_ID/hugo:$_HUGO_VERSION