2024-07-21 22:23:35 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
2024-07-21 22:32:38 +02:00
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
2024-07-21 22:23:35 +02:00
|
|
|
steps:
|
2024-07-21 22:32:38 +02:00
|
|
|
- name: clone
|
|
|
|
image: alpine/git
|
|
|
|
commands:
|
|
|
|
- git clone "$DRONE_GIT_HTTP_URL" .
|
|
|
|
- git checkout "$DRONE_COMMIT"
|
2024-07-21 23:04:03 +02:00
|
|
|
- chown -R 29380:29380 .
|
2024-07-21 22:32:38 +02:00
|
|
|
|
2024-10-31 21:01:48 +01:00
|
|
|
- name: deploy faderboard BOM
|
|
|
|
image: appleboy/drone-scp
|
|
|
|
settings:
|
|
|
|
host: dragon.luj0ga.de
|
|
|
|
port: 4222
|
|
|
|
username: www-data
|
|
|
|
key:
|
|
|
|
from_secret: ssh_key
|
|
|
|
passphrase:
|
|
|
|
from_secret: ssh_passphrase
|
|
|
|
target: /var/www/bom.ljg.sh/${DRONE_REPO_NAME}/faderboard
|
|
|
|
source: faderboard/bom/ibom.html
|
|
|
|
strip_components: 2
|
|
|
|
overwrite: yes
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
|
2024-07-21 22:23:35 +02:00
|
|
|
- name: build firmware for faderboard
|
|
|
|
image: git.luj0ga.de/luca/docker-embedded-rust
|
|
|
|
commands:
|
|
|
|
- >-
|
|
|
|
[ -z "$(git diff --name-only "$DRONE_COMMIT_BEFORE" "$DRONE_COMMIT_AFTER" | grep '^firmware/faderboard/')" ]
|
2024-07-21 22:47:39 +02:00
|
|
|
&& echo "nothing to do" >&2
|
|
|
|
&& exit 0
|
2024-07-21 22:32:38 +02:00
|
|
|
- cd firmware/faderboard
|
2024-07-21 22:23:35 +02:00
|
|
|
- cargo build
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- push
|