FIxing building

master
Ad5001 1 year ago
parent 41822ba3da
commit ca90eb5373
Signed by: Ad5001
GPG Key ID: EF45F9C6AFE20160
  1. 45
      ci/drone.yml

@ -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
@ -53,6 +72,28 @@ steps:
when:
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

Loading…
Cancel
Save