Proper yaml linting.
This commit is contained in:
parent
df13e01b46
commit
eba63d7cdd
1 changed files with 33 additions and 32 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: [ master ]
|
||||
event: [push, tag]
|
||||
branch: [master]
|
||||
|
||||
- name: Remove old dev.apps.ad5001.eu
|
||||
image: appleboy/drone-ssh
|
||||
|
@ -46,8 +47,8 @@ steps:
|
|||
- cd "$DEV_WWW_PATH"
|
||||
- rm -rf *
|
||||
when:
|
||||
event: [ push, tag ]
|
||||
branch: [ master ]
|
||||
event: [push, tag]
|
||||
branch: [master]
|
||||
|
||||
- name: Deploy dev.apps.ad5001.eu
|
||||
image: appleboy/drone-scp
|
||||
|
@ -62,16 +63,16 @@ steps:
|
|||
from_secret: DEV_WWW_PATH
|
||||
source: public/*
|
||||
when:
|
||||
event: [ push, tag ]
|
||||
branch: [ master ]
|
||||
event: [push, tag]
|
||||
branch: [master]
|
||||
|
||||
- name: Build apps.ad5001.eu
|
||||
image: xdevbase/hugo-builder:latest
|
||||
commands:
|
||||
- hugo
|
||||
when:
|
||||
event: [ push, tag ]
|
||||
branch: [ prod ]
|
||||
event: [push, tag]
|
||||
branch: [prod]
|
||||
|
||||
- name: Remove old apps.ad5001.eu
|
||||
image: appleboy/drone-ssh
|
||||
|
@ -92,8 +93,8 @@ steps:
|
|||
- cd "$PROD_WWW_PATH"
|
||||
- rm -rf *
|
||||
when:
|
||||
event: [ push, tag ]
|
||||
branch: [ prod ]
|
||||
event: [push, tag]
|
||||
branch: [prod]
|
||||
|
||||
- name: Deploy apps.ad5001.eu
|
||||
image: appleboy/drone-scp
|
||||
|
@ -108,5 +109,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