FIxing building
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adsooi 2021-08-09 01:45:27 +02:00
parent 41822ba3da
commit ca90eb5373
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

View file

@ -28,7 +28,26 @@ steps:
- hugo -b https://dev.apps.ad5001.eu
when:
event: [ push, tag ]
branch: [ main ]
branch: [ master ]
- name: Remove old dev.apps.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:
- export DEV_WWW_PATH=$DEV_WWW_PATH
- cd "$DEV_WWW_PATH"
- rm -rf *
when:
event: [ push, tag ]
branch: [ master ]
- name: Deploy dev.apps.ad5001.eu
image: appleboy/drone-scp
@ -44,7 +63,7 @@ steps:
source: public/*
when:
event: [ push, tag ]
branch: [ main ]
branch: [ master ]
- name: Build apps.ad5001.eu
image: xdevbase/hugo-builder:latest
@ -54,6 +73,28 @@ steps:
event: [ push, tag ]
branch: [ prod ]
- name: Remove old apps.ad5001.eu
image: appleboy/drone-ssh
environment:
PROD_WWW_PATH:
from_secret: PROD_WWW_PATH
settings:
host:
from_secret: SSH_HOST
username:
from_secret: SSH_USERNAME
password:
from_secret: SSH_PASSWORD
envs:
- PROD_WWW_PATH
script:
- export DEV_WWW_PATH=$DEV_WWW_PATH
- cd "$PROD_WWW_PATH"
- rm -rf *
when:
event: [ push, tag ]
branch: [ prod ]
- name: Deploy apps.ad5001.eu
image: appleboy/drone-scp
settings: