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
parent b2e13e8985
commit 4e5d7b2a4c

View File

@ -1,47 +1,40 @@
--- branches:
kind: pipeline exclude:
type: docker - renovate/*
name: default
platform: clone:
os: linux git:
arch: arm64 image: woodpeckerci/plugin-git
settings:
recursive: true
steps: steps:
- name: fetch submodules build-production:
image: alpine
commands:
- apk add --no-cache git
- git submodule init
- git submodule update --recursive --remote
- name: build production
image: plugins/hugo image: plugins/hugo
environment:
- HUGO_ENV=production
settings: settings:
hugo_version: 0.91.2 hugo_version: 0.91.2
validate: true validate: true
environment:
HUGO_ENV: "production"
when: when:
branch: branch: master
- master
- name: build drafts build-drafts:
image: plugins/hugo image: plugins/hugo
environment:
- "HUGO_BASEURL=https://nemunai.re/${CI_COMMIT_BRANCH//\\//-}/"
settings: settings:
hugo_version: 0.91.2 hugo_version: 0.91.2
validate: true validate: true
buildDrafts: true buildDrafts: true
buildExpired: true buildExpired: true
buildFuture: true buildFuture: true
environment:
HUGO_BASEURL: https://nemunai.re/${DRONE_BRANCH//\//-}/
when: when:
branch: branch:
exclude: exclude:
- master - master
- name: publish on s3 publish-on-s3:
image: plugins/s3 image: plugins/s3
settings: settings:
endpoint: https://storage.nemunai.re endpoint: https://storage.nemunai.re
@ -53,14 +46,4 @@ steps:
from_secret: s3_secret_key from_secret: s3_secret_key
source: public/**/* source: public/**/*
strip_prefix: public/ strip_prefix: public/
target: /${DRONE_BRANCH//\//-} target: "/${CI_COMMIT_BRANCH//\\//-}"
trigger:
branch:
exclude:
- renovate/*
event:
- cron
- push
- tag
- custom