Auto Deploy to luppp.soundship.de

main
Georg Krause 2019-05-15 16:08:05 +02:00
parent 3d70c3e2b0
commit 0a35e7abcf
3 changed files with 18 additions and 2 deletions

16
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,16 @@
deploy:
before_script:
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
script:
- git submodule update --init
- pipenv install --system
- make publish
- make ssh_upload
image: mc706/pipenv-3.7

View File

@ -11,7 +11,7 @@ PUBLISHCONF=$(BASEDIR)/publishconf.py
SSH_HOST=shoemaker.uberspace.de
SSH_PORT=22
SSH_USER=gcrkng
SSH_TARGET_DIR=REPLACE
SSH_TARGET_DIR=/var/www/virtual/gcrkng/luppp.soundship.de
DEBUG ?= 0

View File

@ -14,7 +14,7 @@ CONFIG = {
'deploy_path': 'output',
# Remote server configuration
'production': 'gcrkng@shoemaker.uberspace.de:22',
'dest_path': 'REPLACE',
'dest_path': '/var/www/virtual/gcrkng/luppp.soundship.de',
# Port for `serve`
'port': 8000,
}