Compare commits
1 Commits
732beec17a
...
ff3ad34929
Author | SHA1 | Date |
---|---|---|
|
ff3ad34929 |
32
.drone.yml
32
.drone.yml
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue