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

This commit is contained in:
Ad5001 2021-08-09 01:21:54 +02:00
parent 6eb18669d1
commit 8b1d67d75d
Signed by: Ad5001
GPG Key ID: EF45F9C6AFE20160
1 changed files with 37 additions and 1 deletions

View File

@ -29,7 +29,25 @@ steps:
when:
event: [ push, tag ]
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
image: appleboy/drone-scp
settings:
@ -54,6 +72,24 @@ steps:
event: [ push, tag ]
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
image: appleboy/drone-scp
settings: