Finish staging deploy logic
This commit is contained in:
parent
288c6ae2eb
commit
3158b0408d
20
.drone.yml
20
.drone.yml
@ -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…
Reference in New Issue
Block a user