From 4e5d7b2a4cfc686d6c4cfeccc12b8373fd9baadd Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Fri, 27 Oct 2023 17:03:04 +0200 Subject: [PATCH] CI: Move to woodpecker --- .drone.yml => .woodpecker.yaml | 53 ++++++++++++---------------------- 1 file changed, 18 insertions(+), 35 deletions(-) rename .drone.yml => .woodpecker.yaml (52%) diff --git a/.drone.yml b/.woodpecker.yaml similarity index 52% rename from .drone.yml rename to .woodpecker.yaml index 3ff45db..f24ab10 100644 --- a/.drone.yml +++ b/.woodpecker.yaml @@ -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 + - 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//\\//-}"