diff --git a/.drone.yml b/.drone.yml index 1e3427a..9589c4d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -34,6 +34,28 @@ steps: event: promote target: staging + # =============== DEPLOY TO PROD SITE =============== + - name: deploy repo to production site + image: appleboy/drone-ssh + settings: + host: + from_secret: prod_site_host + username: + from_secret: prod_site_user + key: + from_secret: prod_site_key + port: 22 + script: + - cd /etc/glmdev/noded-dev/backend + - git checkout master + - git pull + - git checkout ${DRONE_COMMIT} + - yarn install + - systemctl restart noded-dev + when: + event: promote + target: production + # =============== NOTIFICATIONS =============== - name: send success notifications image: plugins/webhook