Compare commits
1 Commits
ff3ad34929
...
732beec17a
Author | SHA1 | Date |
---|---|---|
|
732beec17a |
12
.drone.yml
12
.drone.yml
|
@ -34,15 +34,10 @@ steps:
|
||||||
- name: publish-stage
|
- name: publish-stage
|
||||||
pull: True
|
pull: True
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
|
||||||
host: stage.maidstone-hackspace.org.uk
|
host: stage.maidstone-hackspace.org.uk
|
||||||
username:
|
user: root
|
||||||
from_secret: ssh_user
|
secrets: [ ssh_key ]
|
||||||
key:
|
|
||||||
from_secret: ssh_key
|
|
||||||
port: 22
|
port: 22
|
||||||
duration: 4m
|
|
||||||
|
|
||||||
command_timeout: 480
|
command_timeout: 480
|
||||||
script:
|
script:
|
||||||
- cd /var/www/maidstone-hackspace-website
|
- cd /var/www/maidstone-hackspace-website
|
||||||
|
@ -52,7 +47,8 @@ steps:
|
||||||
- docker-compose -fstage.yml run --rm django python manage.py collectstatic
|
- docker-compose -fstage.yml run --rm django python manage.py collectstatic
|
||||||
- docker-compose -fstage.yml down --remove-orphans
|
- docker-compose -fstage.yml down --remove-orphans
|
||||||
- docker-compose -fstage.yml up -d
|
- docker-compose -fstage.yml up -d
|
||||||
- echo 'Finished deploy'
|
|
||||||
|
|
||||||
|
|
||||||
- name: publish-live
|
- name: publish-live
|
||||||
pull: True
|
pull: True
|
||||||
|
|
Loading…
Reference in New Issue