Update .gitlab-ci.yml

This commit is contained in:
Ilya 2022-03-26 22:37:57 +00:00
parent a1b8ad5185
commit efea4cca6a

View File

@ -21,7 +21,7 @@ deploy_prod:
- chmod 700 ~/.ssh/key - chmod 700 ~/.ssh/key
- printf "host $PROD_HOST\n IdentityFile ~/.ssh/key" > ~/.ssh/config - printf "host $PROD_HOST\n IdentityFile ~/.ssh/key" > ~/.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) || echo "I tryed"
- chmod 644 ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts
script: script:
- git remote add dokku ssh://dokku@$PROD_HOST/exchange-bot || echo "Already exists" - git remote add dokku ssh://dokku@$PROD_HOST/exchange-bot || echo "Already exists"