From 85150c27925df0ac67f258262514325bf6bf8169 Mon Sep 17 00:00:00 2001 From: steven Date: Tue, 5 Mar 2019 10:04:48 -0700 Subject: [PATCH] Add update production on push --- .drone.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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