Commit 5ac78ff3 authored by John Long's avatar John Long

CI: Attempt to fix hung deployment

parent 65f56d4e
Pipeline #48323948 failed with stage
in 29 seconds
......@@ -21,8 +21,9 @@ deploy:prod:
stage: deploy
script:
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY" | base64 -d)
- mkdir -p ~/.ssh && chmod 700 ~/.ssh
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
- ssh-add ~/.ssh/id_rsa
- touch ~/.ssh/known_hosts && chmod 600 ~/.ssh/known_hosts
- ssh-keyscan $DEST_HOST >> ~/.ssh/known_hosts 2>&1
- ssh-keyscan $(getent hosts $DEST_HOST | awk '{ print $1 }') >> ~/.ssh/known_hosts 2>&1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment