forked from sorceress/rustcord
Update .gitlab-ci.yml to use new host (thanks to julia uwu)
This commit is contained in:
parent
596232b0e1
commit
c8d8e93000
|
@ -2,12 +2,19 @@
|
||||||
stages:
|
stages:
|
||||||
- deploy
|
- 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:
|
production:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
- apt-get update -qy
|
- ssh julia@prod.zotan.network "cd discordinyator/ && git checkout master && git pull origin master && sudo systemctl restart discordinyator.service && exit"
|
||||||
- apt-get install -y ruby-dev
|
|
||||||
- gem install dpl
|
|
||||||
- dpl --provider=heroku --app=$HEROKU_APP --api-key=$HEROKU_API_KEY
|
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
Loading…
Reference in New Issue