testing ssh deploy setup
This commit is contained in:
parent
bb2e071f44
commit
f993311e7c
17
.drone.yml
17
.drone.yml
|
@ -17,15 +17,26 @@ pipeline:
|
||||||
- pip install --user --cache-dir ./cache/pip -r ./requirements/test.txt
|
- pip install --user --cache-dir ./cache/pip -r ./requirements/test.txt
|
||||||
- python manage.py test mhackspace --verbosity 2
|
- python manage.py test mhackspace --verbosity 2
|
||||||
|
|
||||||
publish:
|
publish-test:
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
host: maidstone-hackspace.org.uk
|
host: maidstone-hackspace.org.uk
|
||||||
# user: root
|
user: ${SSH_USERNAME}
|
||||||
# password: 1234
|
key: ${SSH_KEY}
|
||||||
port: 22
|
port: 22
|
||||||
script:
|
script:
|
||||||
- echo 'to be added'
|
- echo 'to be added'
|
||||||
|
|
||||||
|
publish-live:
|
||||||
|
image: appleboy/drone-ssh
|
||||||
|
user: ${SSH_USERNAME}
|
||||||
|
key: ${SSH_KEY}
|
||||||
|
host: maidstone-hackspace.org.uk
|
||||||
|
port: 22
|
||||||
|
script:
|
||||||
|
- echo 'to be added'
|
||||||
|
when:
|
||||||
|
event: [ tag ]
|
||||||
|
|
||||||
services:
|
services:
|
||||||
mailhog:
|
mailhog:
|
||||||
image: mailhog/mailhog
|
image: mailhog/mailhog
|
||||||
|
|
Loading…
Reference in New Issue