add production step to pipeline
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f3664508e9
commit
53cd28e816
21
.drone.yml
21
.drone.yml
@ -21,3 +21,24 @@ steps:
|
|||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
repo: registry.deadbeef.codes/deadbeef.codes-publicfileserver
|
repo: registry.deadbeef.codes/deadbeef.codes-publicfileserver
|
||||||
|
- name: production
|
||||||
|
image: appleboy/drone-ssh
|
||||||
|
settings:
|
||||||
|
host: 10.69.71.105
|
||||||
|
port: 22
|
||||||
|
username:
|
||||||
|
from_secret: sshusername
|
||||||
|
password:
|
||||||
|
from_secret: sshpassword
|
||||||
|
script:
|
||||||
|
- echo Informing spud to pull latest container and infrastructure...
|
||||||
|
- cd deadbeef.codes-infrastructure/spud
|
||||||
|
- git pull
|
||||||
|
- docker-compose pull >/dev/null
|
||||||
|
- echo Restarting updated services...
|
||||||
|
- ./start.sh >/dev/null
|
||||||
|
- echo Done.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user