rustcord/.gitlab-ci.yml

21 lines
608 B
YAML
Raw Normal View History

2020-04-26 15:34:43 +00:00
# haha imagine testing your code
stages:
2020-04-26 15:36:55 +00:00
- deploy
2020-04-26 15:34:43 +00:00
before_script:
- apt-get update -qq
- apt-get install -qq git
# Setup SSH deploy keys
- 'which ssh-agent || ( apt-get install -qq openssh-client )'
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
2020-06-24 10:01:05 +00:00
2020-04-26 15:34:43 +00:00
production:
stage: deploy
script:
2020-06-24 10:01:05 +00:00
- ssh agatha@hydra.zotan.network "cd discordinyator/ && git checkout master && git pull origin master && sudo systemctl restart discordinyator.service && exit"
2020-04-26 15:34:43 +00:00
only:
2020-04-26 16:33:13 +00:00
- master