-
Notifications
You must be signed in to change notification settings - Fork 1
Description
I am trying to push static pages (vitepress) from a Gitlab CI/CD pipeline to a projects app, that is created during job execution.
Uploading app installation
β
getting connection data. done
β
check if rsync is installed. done
β uploading app installation. error
Host key verification failed.
rsync: connection unexpectedly closed (0 bytes received so far)
[sender]
rsync error: unexplained error (code 255) at io.c(232)
[sender=3.2.7]
An error occurred during this operation:
Error: rsync exited with code 255
After seeing this error the first time, I checked to see if I had a SSH key present. There was none, so I added a pub key to my profile in mStudio, and the private key as a project variable to my Gitlab Project, then have it passed it to the job, which writes it to a temp file, sets permissions and then passes the --ssh-identity-file parameter.
The complete command looks something like this. Project is set via context, token via login commands in prior steps.
yarn --silent mw app upload "$APP_SHORTID" --source "$VITEPRESS_DIST_PATH" --ssh-identity-file /tmp/mittwald_ssh_key --ssh-user "erik.poehler@****.de@*******" 2>/dev/null
I did ssh into the app, to look around and check if I find something. All I noticed is that I do not recognize the ssh key in the .ssh/some-internal-authorized-keys file. Is the ssh key only added when the app is created?
What am I missing?