REmoving old website info ssh script in order to fix issue when deploying.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Adsooi 2021-08-09 01:21:54 +02:00
parent 6eb18669d1
commit 8b1d67d75d
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

View file

@ -29,7 +29,25 @@ steps:
when: when:
event: [ push, tag ] event: [ push, tag ]
branch: [ main ] branch: [ main ]
- name: Remove old dev.ad5001.eu
image: appleboy/drone-ssh
settings:
host:
from_secret: SSH_HOST
username:
from_secret: SSH_USERNAME
password:
from_secret: SSH_PASSWORD
envs:
- DEV_WWW_PATH
script:
- cd "$DEV_WWW_PATH"
- rm -rf *
when:
event: [ push, tag ]
branch: [ main ]
- name: Deploy dev.ad5001.eu - name: Deploy dev.ad5001.eu
image: appleboy/drone-scp image: appleboy/drone-scp
settings: settings:
@ -54,6 +72,24 @@ steps:
event: [ push, tag ] event: [ push, tag ]
branch: [ prod ] branch: [ prod ]
- name: Remove old ad5001.eu
image: appleboy/drone-ssh
settings:
host:
from_secret: SSH_HOST
username:
from_secret: SSH_USERNAME
password:
from_secret: SSH_PASSWORD
envs:
- DEV_WWW_PATH
script:
- cd "$DEV_WWW_PATH"
- rm -rf *
when:
event: [ push, tag ]
branch: [ prod ]
- name: Deploy ad5001.eu - name: Deploy ad5001.eu
image: appleboy/drone-scp image: appleboy/drone-scp
settings: settings: