Add prod site deploy config
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Garrett Mills 2020-10-05 20:25:33 -05:00
parent b4f361bb69
commit ac42da3510
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

View File

@ -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