I am trying to automate deployment to a Google Flex App Engine in a bitbucket pipeline.
If I'm deploying via the CLI I can run something like this to run migrations after deployment:
gcloud app instances ssh --quiet --project <MYPROJECT> --version v0-0-1 --container=gaeapp --service <MYSERVICE> -- do-something-after-deploy.sh
However, this prompts me for this:
ED25519 key fingerprint is SHA256:....................
Are you sure you want to continue connecting (yes/no/[fingerprint])?
It doesn't look like I can use ssh-keyscan to accept the host key. Is there a way to automate the execution of a script on google app engine after deployment?
gcloud compute ssh
, though: cloud.google.com/sdk/gcloud/reference/compute/…. I set this up to migrate via the cloud sql proxy instead.