I am trying to SSH into my Compute Engine instance using CircleCI with a command that looks like this in config.yml:
gcloud --quiet compute ssh [INSTANCE_NAME] --zone northamerica-northeast1-a --project [PROJECT_NAME]
cd /var/www/dev
I can successfully authenticate and see the command prompt in CircleCI logs. However, the commands after SSH are not being carried out. What am I doing wrong here?
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Sep 12 15:53:55 2018 from 18.212.180.159
[USER_NAME]:~$
I expect to have cd command run after successful authentication.