Compare commits
1 Commits
732beec17a
...
ff3ad34929
Author | SHA1 | Date |
---|---|---|
|
ff3ad34929 |
32
.drone.yml
32
.drone.yml
|
@ -34,21 +34,25 @@ steps:
|
||||||
- name: publish-stage
|
- name: publish-stage
|
||||||
pull: True
|
pull: True
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
host: stage.maidstone-hackspace.org.uk
|
settings:
|
||||||
user: root
|
host: stage.maidstone-hackspace.org.uk
|
||||||
secrets: [ ssh_key ]
|
username:
|
||||||
port: 22
|
from_secret: ssh_user
|
||||||
command_timeout: 480
|
key:
|
||||||
script:
|
from_secret: ssh_key
|
||||||
- cd /var/www/maidstone-hackspace-website
|
port: 22
|
||||||
- git pull
|
duration: 4m
|
||||||
- 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
|
- name: publish-live
|
||||||
pull: True
|
pull: True
|
||||||
|
|
Loading…
Reference in New Issue