Compare commits
1 Commits
732beec17a
...
ff3ad34929
Author | SHA1 | Date |
---|---|---|
|
ff3ad34929 |
12
.drone.yml
12
.drone.yml
|
@ -34,10 +34,15 @@ 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
|
||||||
user: root
|
username:
|
||||||
secrets: [ ssh_key ]
|
from_secret: ssh_user
|
||||||
|
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
|
||||||
|
@ -47,8 +52,7 @@ 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