nemunai.re/.woodpecker.yaml

55 lines
1.0 KiB
YAML

branches:
exclude:
- renovate/*
when:
event:
- cron
- push
- tag
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//\\//-}"