diff --git a/.drone.yml b/.drone.yml index 8f3b2b0..3bbfd16 100644 --- a/.drone.yml +++ b/.drone.yml @@ -21,3 +21,21 @@ steps: image: plugins/docker settings: repo: registry.deadbeef.codes/mandelmapper + +- 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 + - git pull + - docker-compose pull >/dev/null + - echo Restarting updated services... + - docker-compose up -d >/dev/null + - echo Done. \ No newline at end of file