Update CI

This commit is contained in:
Agatha Lovelace 2020-06-24 13:01:05 +03:00
parent d648fb779e
commit 1193b6e0d9
1 changed files with 2 additions and 2 deletions

View File

@ -11,10 +11,10 @@ before_script:
- ssh-add <(echo "$SSH_PRIVATE_KEY") - ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
production: production:
stage: deploy stage: deploy
script: script:
- ssh julia@destiny.zotan.network "cd discordinyator/ && git checkout master && git pull origin master && sudo systemctl restart discordinyator.service && exit" - ssh agatha@hydra.zotan.network "cd discordinyator/ && git checkout master && git pull origin master && sudo systemctl restart discordinyator.service && exit"
only: only:
- master - master