Finish staging deploy logic
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 18:27:21 -05:00
parent 288c6ae2eb
commit 3158b0408d
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

View File

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