nemunai.re/.woodpecker.yaml

55 lines
1.0 KiB
YAML
Raw Normal View History

2023-10-27 15:03:04 +00:00
branches:
exclude:
- renovate/*
when:
event:
- cron
- push
- tag
2021-07-23 22:11:27 +00:00
2023-10-27 15:03:04 +00:00
clone:
git:
image: woodpeckerci/plugin-git
settings:
recursive: true
2023-04-15 15:13:45 +00:00
2021-07-23 22:11:27 +00:00
steps:
2023-10-27 15:03:04 +00:00
build-production:
2021-07-23 22:11:27 +00:00
image: plugins/hugo
2023-10-27 15:03:04 +00:00
environment:
- HUGO_ENV=production
2021-07-23 22:11:27 +00:00
settings:
2023-04-15 15:11:27 +00:00
hugo_version: 0.91.2
2021-07-23 22:11:27 +00:00
validate: true
2023-04-15 15:11:27 +00:00
when:
2023-10-27 15:03:04 +00:00
branch: master
2021-07-23 22:11:27 +00:00
2023-10-27 15:03:04 +00:00
build-drafts:
2023-04-15 15:11:27 +00:00
image: plugins/hugo
2023-10-27 15:03:04 +00:00
environment:
- "HUGO_BASEURL=https://nemunai.re/${CI_COMMIT_BRANCH//\\//-}/"
2021-07-23 22:11:27 +00:00
settings:
2023-04-15 15:11:27 +00:00
hugo_version: 0.91.2
validate: true
buildDrafts: true
buildExpired: true
buildFuture: true
2021-07-23 22:11:27 +00:00
when:
branch:
exclude:
2023-10-27 15:03:04 +00:00
- master
2023-04-15 15:11:27 +00:00
2023-10-27 15:03:04 +00:00
publish-on-s3:
2023-04-15 15:11:27 +00:00
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/
2023-10-27 15:03:04 +00:00
target: "/${CI_COMMIT_BRANCH//\\//-}"