This commit is contained in:
parent
d006d4a562
commit
c1f54d8540
1 changed files with 34 additions and 33 deletions
25
ci/drone.yml
25
ci/drone.yml
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
|
@ -27,8 +28,8 @@ steps:
|
|||
commands:
|
||||
- hugo --config ci/dev.config.yml
|
||||
when:
|
||||
event: [ push, tag ]
|
||||
branch: [ main ]
|
||||
event: [push, tag]
|
||||
branch: [main]
|
||||
|
||||
- name: Remove old dev.ad5001.eu
|
||||
image: appleboy/drone-ssh
|
||||
|
@ -49,8 +50,8 @@ steps:
|
|||
- cd "$DEV_WWW_PATH"
|
||||
- rm -rf *
|
||||
when:
|
||||
event: [ push, tag ]
|
||||
branch: [ main ]
|
||||
event: [push, tag]
|
||||
branch: [main]
|
||||
|
||||
- name: Deploy dev.ad5001.eu
|
||||
image: appleboy/drone-scp
|
||||
|
@ -65,16 +66,16 @@ steps:
|
|||
from_secret: DEV_WWW_PATH
|
||||
source: public/*
|
||||
when:
|
||||
event: [ push, tag ]
|
||||
branch: [ main ]
|
||||
event: [push, tag]
|
||||
branch: [main]
|
||||
|
||||
- name: Build ad5001.eu
|
||||
image: xdevbase/hugo-builder:latest
|
||||
commands:
|
||||
- hugo
|
||||
when:
|
||||
event: [ push, tag ]
|
||||
branch: [ prod ]
|
||||
event: [push, tag]
|
||||
branch: [prod]
|
||||
|
||||
- name: Remove old ad5001.eu
|
||||
image: appleboy/drone-ssh
|
||||
|
@ -95,8 +96,8 @@ steps:
|
|||
- cd "$PROD_WWW_PATH"
|
||||
- rm -rf *
|
||||
when:
|
||||
event: [ push, tag ]
|
||||
branch: [ prod ]
|
||||
event: [push, tag]
|
||||
branch: [prod]
|
||||
|
||||
- name: Deploy ad5001.eu
|
||||
image: appleboy/drone-scp
|
||||
|
@ -111,5 +112,5 @@ steps:
|
|||
from_secret: PROD_WWW_PATH
|
||||
source: public/*
|
||||
when:
|
||||
event: [ push, tag ]
|
||||
branch: [ prod ]
|
||||
event: [push, tag]
|
||||
branch: [prod]
|
||||
|
|
Loading…
Reference in a new issue