testing ssh deploy setup

This commit is contained in:
Oliver Marks 2017-02-19 18:24:28 +00:00
parent bb2e071f44
commit f993311e7c
1 changed files with 14 additions and 3 deletions

View File

@ -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