I'm using Google Cloud Build with cloudbuild.yaml
to download an app.yaml
file that includes environment variables for my Python
based app. The app.yaml
version used for the initial deployment does not contain the environment variables for security protection.
However, it seems this isn't working and the environment variables aren't being detected - as the app.yaml
does not seem to be overwritten.
The following is my cloudbuild.yaml
configuration:
steps:
- name: gcr.io/cloud-builders/gsutil
args:
[
"cp",
"gs://<path to bucket>/app.yaml",
"app.yaml",
]
I understand the entrypoint for an app on App Engine
is through app.yaml
but I thought that if cloudBuild.yaml
is included, this would be called first and then app.yaml
.
If this isn't correct how else can I append environment variables to my app.yaml file?
Thanks!