As I understand it, gcloud app deploy
triggers a Cloud Build job behind the scenes based on command line options and things like requirements.txt
(for python runtime). What I am looking to do is extend these Cloud Build steps to include things like database migration and testing before the deploy.
I can see that I could run these extra steps within separate containers in a separate GCP project, and then as the final step do something like
- name: 'gcr.io/cloud-builders/gcloud'
args: [ 'app', 'deploy', 'app.yaml', '--project', 'my-gae-project', '--version', 'staging' ]
Does that seem like a good way to do it? Has anyone done this kind of thing before for a GAE project?