scores/.drone.yml

60 lines
958 B
YAML

---
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