CI: Move to woodpecker
This commit is contained in:
parent
b2e13e8985
commit
4e5d7b2a4c
@ -1,47 +1,40 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
branches:
|
||||
exclude:
|
||||
- renovate/*
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: arm64
|
||||
clone:
|
||||
git:
|
||||
image: woodpeckerci/plugin-git
|
||||
settings:
|
||||
recursive: true
|
||||
|
||||
steps:
|
||||
- name: fetch submodules
|
||||
image: alpine
|
||||
commands:
|
||||
- apk add --no-cache git
|
||||
- git submodule init
|
||||
- git submodule update --recursive --remote
|
||||
|
||||
- name: build production
|
||||
build-production:
|
||||
image: plugins/hugo
|
||||
environment:
|
||||
- HUGO_ENV=production
|
||||
settings:
|
||||
hugo_version: 0.91.2
|
||||
validate: true
|
||||
environment:
|
||||
HUGO_ENV: "production"
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
branch: master
|
||||
|
||||
- name: build drafts
|
||||
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
|
||||
environment:
|
||||
HUGO_BASEURL: https://nemunai.re/${DRONE_BRANCH//\//-}/
|
||||
when:
|
||||
branch:
|
||||
exclude:
|
||||
- master
|
||||
|
||||
- name: publish on s3
|
||||
publish-on-s3:
|
||||
image: plugins/s3
|
||||
settings:
|
||||
endpoint: https://storage.nemunai.re
|
||||
@ -53,14 +46,4 @@ steps:
|
||||
from_secret: s3_secret_key
|
||||
source: public/**/*
|
||||
strip_prefix: public/
|
||||
target: /${DRONE_BRANCH//\//-}
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
exclude:
|
||||
- renovate/*
|
||||
event:
|
||||
- cron
|
||||
- push
|
||||
- tag
|
||||
- custom
|
||||
target: "/${CI_COMMIT_BRANCH//\\//-}"
|
Loading…
Reference in New Issue
Block a user