Auto Deploy to luppp.soundship.de
parent
3d70c3e2b0
commit
0a35e7abcf
|
@ -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
|
2
Makefile
2
Makefile
|
@ -11,7 +11,7 @@ PUBLISHCONF=$(BASEDIR)/publishconf.py
|
||||||
SSH_HOST=shoemaker.uberspace.de
|
SSH_HOST=shoemaker.uberspace.de
|
||||||
SSH_PORT=22
|
SSH_PORT=22
|
||||||
SSH_USER=gcrkng
|
SSH_USER=gcrkng
|
||||||
SSH_TARGET_DIR=REPLACE
|
SSH_TARGET_DIR=/var/www/virtual/gcrkng/luppp.soundship.de
|
||||||
|
|
||||||
|
|
||||||
DEBUG ?= 0
|
DEBUG ?= 0
|
||||||
|
|
2
tasks.py
2
tasks.py
|
@ -14,7 +14,7 @@ CONFIG = {
|
||||||
'deploy_path': 'output',
|
'deploy_path': 'output',
|
||||||
# Remote server configuration
|
# Remote server configuration
|
||||||
'production': 'gcrkng@shoemaker.uberspace.de:22',
|
'production': 'gcrkng@shoemaker.uberspace.de:22',
|
||||||
'dest_path': 'REPLACE',
|
'dest_path': '/var/www/virtual/gcrkng/luppp.soundship.de',
|
||||||
# Port for `serve`
|
# Port for `serve`
|
||||||
'port': 8000,
|
'port': 8000,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue