CI: Move to woodpecker
This commit is contained in:
parent
b2e13e8985
commit
4e5d7b2a4c
1 changed files with 18 additions and 35 deletions
49
.woodpecker.yaml
Normal file
49
.woodpecker.yaml
Normal 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//\\//-}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue