Compare commits

..

1 Commits

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

View File

@ -34,21 +34,25 @@ steps:
- name: publish-stage
pull: True
image: appleboy/drone-ssh
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
settings:
host: stage.maidstone-hackspace.org.uk
username:
from_secret: ssh_user
key:
from_secret: ssh_key
port: 22
duration: 4m
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