Commit 7778a528 authored by Daniel Pérez Fernández's avatar Daniel Pérez Fernández 🕶
Browse files

update yml

parent af6d0b04
Pipeline #92907986 failed with stage
in 33 seconds
......@@ -6,6 +6,7 @@ variables:
SERVER_IP: $SERVER_IP
SERVER_PORT: $SERVER_PORT
SSH_USERNAME: $SSH_USERNAME
DEPLOY_KEY : $DEPLOY_KEY
stages:
- deploy
......@@ -16,8 +17,8 @@ deploy:
- apk add --update openssh bash openssl gettext
- eval $(ssh-agent -s)
- mkdir -p ~/.ssh
- echo "$DEPLOY_KEY" > MyKey.pub
- mv MyKey.pub ~/.ssh/id_rsa
- echo "$DEPLOY_KEY" > MyKey
- mv MyKey ~/.ssh/id_rsa
- chmod 700 ~/.ssh/id_rsa
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- ssh-keyscan -H domain.com >> ~/.ssh/known_hosts
......
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