Jens True
10046a9d6c
Some checks reported errors
continuous-integration/drone/push Build encountered an error
56 lines
1.2 KiB
YAML
56 lines
1.2 KiB
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: build
|
|
image: python:3
|
|
commands:
|
|
- pip install platformio
|
|
- pio run
|
|
- pio check --skip-packages
|
|
- name: docs
|
|
image: corentinaltepe/doxygen
|
|
commands:
|
|
- doxygen
|
|
- name: release
|
|
image: plugins/gitea-release
|
|
settings:
|
|
api_key:
|
|
from_secret: DRONE_ACCESS_TOKEN
|
|
base_url: https://code.jcktrue.dk
|
|
files:
|
|
- .pio/build/max7456board/firmware.hex
|
|
when:
|
|
event: tag
|
|
- name: upload
|
|
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}/dev
|
|
rm: true
|
|
- 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
|