Compare commits

..

1 Commits

Author SHA1 Message Date
Oliver Marks 732beec17a Turn of cache dir to save memory.
continuous-integration/drone/push Build is failing Details
2019-05-04 17:39:12 +01:00
1 changed files with 14 additions and 18 deletions

View File

@ -34,25 +34,21 @@ steps:
- name: publish-stage
pull: True
image: appleboy/drone-ssh
settings:
host: stage.maidstone-hackspace.org.uk
username:
from_secret: ssh_user
key:
from_secret: ssh_key
port: 22
duration: 4m
host: stage.maidstone-hackspace.org.uk
user: root
secrets: [ ssh_key ]
port: 22
command_timeout: 480
script:
- cd /var/www/maidstone-hackspace-website
- git pull
- docker-compose -fstage.yml build
- docker-compose -fstage.yml run --rm django python manage.py compilescss
- docker-compose -fstage.yml run --rm django python manage.py collectstatic
- docker-compose -fstage.yml down --remove-orphans
- docker-compose -fstage.yml up -d
command_timeout: 480
script:
- cd /var/www/maidstone-hackspace-website
- git pull
- docker-compose -fstage.yml build
- docker-compose -fstage.yml run --rm django python manage.py compilescss
- docker-compose -fstage.yml run --rm django python manage.py collectstatic
- docker-compose -fstage.yml down --remove-orphans
- docker-compose -fstage.yml up -d
- echo 'Finished deploy'
- name: publish-live
pull: True