Update .gitlab-ci.yml
This commit is contained in:
parent
cffbf343cf
commit
1af87f31dd
@ -20,6 +20,7 @@ deploy_prod:
|
||||
- git config --global user.email "runner@lab.knrg.su"
|
||||
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/key
|
||||
- printf "host $PROD_HOST\n Port $PROD_PORT\n IdentityFile ~/.ssh/key" > ~/.ssh/config
|
||||
- cat ~/.ssh/config
|
||||
#- chmod 600 "$SSH_PRIVATE_KEY"
|
||||
- ssh-keyscan $PROD_HOST >> ~/.ssh/known_hosts
|
||||
- chmod 644 ~/.ssh/known_hosts
|
||||
|
Reference in New Issue
Block a user