Update .gitlab-ci.yml
This commit is contained in:
parent
44f71a1dcc
commit
145f124d2f
@ -18,10 +18,10 @@ deploy_prod:
|
|||||||
- git config --global user.name "Push Runner"
|
- git config --global user.name "Push Runner"
|
||||||
- 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
|
||||||
- printf "host $PROD_HOST\n Port $PROD_PORT\n IdentityFile ~/.ssh/key" > ~/.ssh/config
|
- printf "host $PROD_HOST\n IdentityFile ~/.ssh/key" > ~/.ssh/config
|
||||||
- cat ~/.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
|
||||||
script:
|
script:
|
||||||
- git remote add dokku ssh://dokku@dokku2.redguy.ru/exchange-bot
|
- git remote add dokku ssh://dokku@$PROD_HOST/exchange-bot
|
||||||
|
Reference in New Issue
Block a user