Add prod site deploy config
This commit is contained in:
parent
b4f361bb69
commit
ac42da3510
22
.drone.yml
22
.drone.yml
@ -34,6 +34,28 @@ steps:
|
|||||||
event: promote
|
event: promote
|
||||||
target: staging
|
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 ===============
|
# =============== NOTIFICATIONS ===============
|
||||||
- name: send success notifications
|
- name: send success notifications
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
|
Loading…
Reference in New Issue
Block a user