21 lines
608 B
YAML
21 lines
608 B
YAML
# haha imagine testing your code
|
|
stages:
|
|
- deploy
|
|
|
|
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'
|
|
|
|
production:
|
|
stage: deploy
|
|
script:
|
|
- ssh agatha@hydra.zotan.network "cd discordinyator/ && git checkout master && git pull origin master && sudo systemctl restart discordinyator.service && exit"
|
|
only:
|
|
- master
|