37 lines
824 B
YAML
37 lines
824 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
trigger:
|
|
branch:
|
|
- master
|
|
|
|
steps:
|
|
- name: Version check
|
|
image: jguyomard/hugo-builder
|
|
commands:
|
|
- echo "Checking Hugo version."
|
|
- hugo version
|
|
|
|
- name: Build
|
|
image: jguyomard/hugo-builder
|
|
commands:
|
|
- hugo --destination /drone/src/build
|
|
- minify -r -o /drone/src/build /drone/src/build
|
|
|
|
- name: Upload
|
|
image: plugins/s3
|
|
settings:
|
|
bucket: faulty.equipment
|
|
access_key:
|
|
from_secret: minio_access
|
|
secret_key:
|
|
from_secret: minio_secret
|
|
source: /drone/src/build/**/*
|
|
target: /
|
|
strip_prefix: /drone/src/build/
|
|
path_style: true
|
|
endpoint: https://artifacts.fromouter.space
|
|
---
|
|
kind: signature
|
|
hmac: 289f9049539d55f3ba20341002e50321e098c8618f8fa1dbd50bd204f68563cd
|