Finish staging deploy logic
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details

pull/18/head
Garrett Mills 4 years ago
parent 288c6ae2eb
commit 3158b0408d
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

@ -38,6 +38,26 @@ steps:
when:
event: promote
target: staging
- name: deploy artifacts on staging site
image: appleboy/drone-ssh
settings:
host:
from_secret: dev_site_host
username:
from_secret: dev_site_user
key:
from_secret: dev_site_key
port: 22
script:
- cd /etc/glmdev/noded
- rm -rf www
- tar xzf build.tar.gz
- cd www
- sed -i 's/<base href="\/" \/>/<base href="\/i\/"\/>/' index.html
- sed -i 's/Ionic App/Noded/' index.html
when:
event: promote
target: staging
# =============== NOTIFICATIONS ===============
- name: send success notifications

Loading…
Cancel
Save