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_PORT=22
|
||||
SSH_USER=gcrkng
|
||||
SSH_TARGET_DIR=REPLACE
|
||||
SSH_TARGET_DIR=/var/www/virtual/gcrkng/luppp.soundship.de
|
||||
|
||||
|
||||
DEBUG ?= 0
|
||||
|
|
Loading…
Reference in New Issue