CI: Move to woodpecker
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/cron/woodpecker Pipeline was successful

This commit is contained in:
nemunaire 2023-10-27 17:03:04 +02:00
commit 4e5d7b2a4c

49
.woodpecker.yaml Normal file
View file

@ -0,0 +1,49 @@
branches:
exclude:
- renovate/*
clone:
git:
image: woodpeckerci/plugin-git
settings:
recursive: true
steps:
build-production:
image: plugins/hugo
environment:
- HUGO_ENV=production
settings:
hugo_version: 0.91.2
validate: true
when:
branch: master
build-drafts:
image: plugins/hugo
environment:
- "HUGO_BASEURL=https://nemunai.re/${CI_COMMIT_BRANCH//\\//-}/"
settings:
hugo_version: 0.91.2
validate: true
buildDrafts: true
buildExpired: true
buildFuture: true
when:
branch:
exclude:
- master
publish-on-s3:
image: plugins/s3
settings:
endpoint: https://storage.nemunai.re
path_style: true
bucket: nemunai.re-blog
access_key:
from_secret: s3_access_key
secret_key:
from_secret: s3_secret_key
source: public/**/*
strip_prefix: public/
target: "/${CI_COMMIT_BRANCH//\\//-}"