Proper yaml linting.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adsooi 2021-08-11 22:05:43 +02:00
parent d006d4a562
commit c1f54d8540
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

View file

@ -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]