This ensure that we deploy to the good host.
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
key-file-variable: KEY_FILE_VARIABLE
username-variable: USER_NAME_VARIABLE
passphrase-variable: PASSPHRASE_VARIABLE
+ - file:
+ credential-id: d023f830-9ab0-409f-b977-8cd0e1944dd5
+ variable: HOST_PUBLIC_KEYS
triggers:
- timed: '@daily'
set -exu
# Add ssh key for deployment
-echo "StrictHostKeyChecking no" >> ~/.ssh/config
+cp "$HOST_PUBLIC_KEYS" ~/.ssh/known_hosts
cp "$KEY_FILE_VARIABLE" ~/.ssh/id_rsa
# lttng-www dependencies