Add prod site deploy config
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details

master
Garrett Mills 4 years ago
parent b4f361bb69
commit ac42da3510
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

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

Loading…
Cancel
Save