REmoving old website info ssh script in order to fix issue when deploying.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
6eb18669d1
commit
8b1d67d75d
1 changed files with 37 additions and 1 deletions
38
ci/drone.yml
38
ci/drone.yml
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue