From 6a04a91df10c6e342f9cd89be5fc496936405cce Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Fri, 27 Oct 2023 17:51:15 +0200 Subject: [PATCH] CI: Move to woodpecker --- .drone.yml | 59 ---------------------------------- .woodpecker/publish index.yaml | 16 +++++++++ .woodpecker/render.yaml | 21 ++++++++++++ 3 files changed, 37 insertions(+), 59 deletions(-) delete mode 100644 .drone.yml create mode 100644 .woodpecker/publish index.yaml create mode 100644 .woodpecker/render.yaml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 7117e16..0000000 --- a/.drone.yml +++ /dev/null @@ -1,59 +0,0 @@ ---- -kind: pipeline -type: docker -name: publish index - -platform: - os: linux - arch: arm64 - -steps: -- name: publish on s3 - image: plugins/s3 - settings: - endpoint: https://storage.nemunai.re - path_style: true - bucket: scores - access_key: - from_secret: s3_access_key - secret_key: - from_secret: s3_secret_key - source: _list.html - target: / - -trigger: - event: - - push - ---- -kind: pipeline -type: docker -name: render - -platform: - os: linux - arch: arm64 - -steps: -- name: render - image: jeandeaual/lilypond:stable - user: root - commands: - - lilypond -dno-point-and-click -dembed-source-code -o "${FILE%.ly}" "${FILE%.ly}.ly" - -- name: publish on s3 - image: plugins/s3 - settings: - endpoint: https://storage.nemunai.re - path_style: true - bucket: scores - access_key: - from_secret: s3_access_key - secret_key: - from_secret: s3_secret_key - source: "${FILE%.ly}.pdf" - target: / - -trigger: - event: - - custom diff --git a/.woodpecker/publish index.yaml b/.woodpecker/publish index.yaml new file mode 100644 index 0000000..ad185fd --- /dev/null +++ b/.woodpecker/publish index.yaml @@ -0,0 +1,16 @@ +steps: + publish-on-s3: + image: plugins/s3 + settings: + endpoint: https://storage.nemunai.re + path_style: true + bucket: scores + access_key: + from_secret: s3_access_key + secret_key: + from_secret: s3_secret_key + source: _list.html + target: / + +when: + event: push diff --git a/.woodpecker/render.yaml b/.woodpecker/render.yaml new file mode 100644 index 0000000..33987a6 --- /dev/null +++ b/.woodpecker/render.yaml @@ -0,0 +1,21 @@ +steps: + render: + image: jeandeaual/lilypond:stable + commands: + - lilypond -dno-point-and-click -dembed-source-code -o "${FILE%.ly}" "${FILE%.ly}.ly" + + publish-on-s3: + image: plugins/s3 + settings: + endpoint: https://storage.nemunai.re + path_style: true + bucket: scores + access_key: + from_secret: s3_access_key + secret_key: + from_secret: s3_secret_key + source: "${FILE%.ly}.pdf" + target: / + +when: + event: custom