1
0
MAX7456JSON/.drone.yml

56 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
- pio check --skip-packages
2021-10-28 14:45:28 +00:00
- name: docs
2021-10-28 14:44:20 +00:00
image: corentinaltepe/doxygen
commands:
- doxygen
- name: release
image: plugins/gitea-release
settings:
2019-10-25 08:04:44 +00:00
api_key:
from_secret: DRONE_ACCESS_TOKEN
base_url: https://code.jcktrue.dk
files:
- .pio/build/max7456board/firmware.hex
when:
event: tag
2021-11-01 08:57:29 +00:00
- name: upload
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:
- .pio\build\max7456board\firmware.hex
- docs/**
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:25:35 +00:00
- name: release
image: appleboy/drone-scp
settings:
host: jcktrue.dk
username:
from_secret: DRONE_USERNAME_SCP
password:
from_secret: DRONE_PASSWORD_SCP
source:
- .pio\build\max7456board\firmware.hex
- docs/**
target:
- /home/jct/apps/http/share.jcktrue.dk/${DRONE_REPO_NAME}/${DRONE_SEMVER}
rm: true
when:
event:
- tag