add drone yml

This commit is contained in:
Quentin 2023-02-21 18:41:52 +01:00
parent 3b3e231bb8
commit 1e9c940fd8
Signed by: quentin
GPG key ID: E9602264D639FF68
2 changed files with 51 additions and 10 deletions

21
.drone.yml Normal file
View file

@ -0,0 +1,21 @@
---
kind: pipeline
name: default
steps:
- name: build
image: ghcr.io/getzola/zola:v0.16.0
commands:
- build
- name: upload
image: plugins/s3
settings:
bucket: guide
access_key:
from_secret: aws_access_key_id
secret_key:
from_secret: aws_secret_acess_key
source: public/**/*
target: /
strip_prefix: public/

View file

@ -11,16 +11,36 @@ display_url: http://guide.web.vimaire.machine.dufour.io
locale: 'en' locale: 'en'
collections: collections:
- name: 'accueil'
label: 'Accueil'
editor:
preview: false
files:
- name: accueil2
label: Accueil2
file: 'content/_index.md'
fields:
- label: Title
name: title
widget: string
- label: Sort by
name: sort_by
widget: string
- label: Body
name: body
widget: markdown
- name: 'prise_en_main' - name: 'prise_en_main'
label: 'Prise en main' label: 'Prise en main'
folder: 'content/prise_en_main' folder: 'content/prise_en_main'
summary: '{{title}} ({{dirname}})' #summary: '{{title}} ({{dirname}})'
editor: editor:
preview: false preview: false
create: true create: true
nested: #nested:
depth: 3 # depth: 3
summary: '{{title}}' # summary: '{{title}}'
fields: fields:
- label: Title - label: Title
name: title name: title
@ -31,7 +51,7 @@ collections:
- label: Body - label: Body
name: body name: body
widget: markdown widget: markdown
meta: { path: { widget: string, label: 'Path', index_file: '_index' } } #meta: { path: { widget: string, label: 'Path', index_file: '_index' } }
- name: 'formations' - name: 'formations'
label: 'Se former' label: 'Se former'
@ -39,10 +59,10 @@ collections:
editor: editor:
preview: false preview: false
create: true create: true
summary: '{{title}} ({{dirname}})' #summary: '{{title}} ({{dirname}})'
nested: #nested:
depth: 3 # depth: 3
summary: '{{title}}' # summary: '{{title}}'
fields: fields:
- label: Title - label: Title
name: title name: title
@ -53,4 +73,4 @@ collections:
- label: Body - label: Body
name: body name: body
widget: markdown widget: markdown
meta: { path: { widget: string, label: 'Path', index_file: '_index' } } #meta: { path: { widget: string, label: 'Path', index_file: '_index' } }