Update .gitlab-ci.yml
This commit is contained in:
parent
588bc0f5be
commit
b3f83df53f
@ -19,8 +19,8 @@ deploy_prod:
|
|||||||
- git config --global user.email "runner@lab.knrg.su"
|
- git config --global user.email "runner@lab.knrg.su"
|
||||||
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/key
|
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/key
|
||||||
- chmod 700 ~/.ssh/key
|
- chmod 700 ~/.ssh/key
|
||||||
|
- cat ~/.ssh/key
|
||||||
- printf "host $PROD_HOST\n IdentityFile ~/.ssh/key" > ~/.ssh/config
|
- printf "host $PROD_HOST\n IdentityFile ~/.ssh/key" > ~/.ssh/config
|
||||||
- cat ~/.ssh/config
|
|
||||||
#- chmod 600 "$SSH_PRIVATE_KEY"
|
#- chmod 600 "$SSH_PRIVATE_KEY"
|
||||||
- ssh-keyscan $PROD_HOST >> ~/.ssh/known_hosts
|
- ssh-keyscan $PROD_HOST >> ~/.ssh/known_hosts
|
||||||
- chmod 644 ~/.ssh/known_hosts
|
- chmod 644 ~/.ssh/known_hosts
|
||||||
|
Reference in New Issue
Block a user