1
0
MAX7456JSON/.drone.yml

54 lines
1.2 KiB
YAML
Raw Normal View History

kind: pipeline
name: default
steps:
- name: build
image: python:3
commands:
- pip install platformio
- pio run
2021-11-01 09:38:49 +00:00
- pio check --skip-packages > StaticCodeAnalysisReport.txt
2021-10-28 14:45:28 +00:00
- name: docs
2021-10-28 14:44:20 +00:00
image: corentinaltepe/doxygen
commands:
- doxygen
2021-11-01 09:38:49 +00:00
- name: prepare
image: alpine
commands:
- mkdir output
- cp .pio\build\max7456board\firmware.hex output/firmware.hex
- mkdir output/docs/
- cp -r docs/html output/docs/
- cp StaticCodeAnalysisReport.txt output/
- name: release-dev
2021-11-01 08:57:29 +00:00
image: appleboy/drone-scp
2021-10-31 21:03:21 +00:00
settings:
2021-11-01 08:57:29 +00:00
host: jcktrue.dk
username:
from_secret: DRONE_USERNAME_SCP
2021-11-01 09:19:17 +00:00
password:
2021-11-01 08:57:29 +00:00
from_secret: DRONE_PASSWORD_SCP
source:
2021-11-01 09:38:49 +00:00
- output/**
strip_components: 1
2021-11-01 09:25:35 +00:00
target:
- /home/jct/apps/http/share.jcktrue.dk/${DRONE_REPO_NAME}/dev
2021-11-01 08:57:29 +00:00
rm: true
2021-11-01 09:38:49 +00:00
- name: release-tag
2021-11-01 09:25:35 +00:00
image: appleboy/drone-scp
settings:
host: jcktrue.dk
username:
from_secret: DRONE_USERNAME_SCP
password:
from_secret: DRONE_PASSWORD_SCP
source:
2021-11-01 09:38:49 +00:00
- output/**
strip_components: 1
2021-11-01 09:25:35 +00:00
target:
- /home/jct/apps/http/share.jcktrue.dk/${DRONE_REPO_NAME}/${DRONE_SEMVER}
rm: true
when:
event:
- tag