esp-volumeknob/.drone.yml

23 lines
523 B
YAML

---
kind: pipeline
type: docker
name: default
steps:
- name: build
image: python:3.10
commands:
- "pip install -U platformio"
#- "cp ampel-firmware/config.public.h ampel-firmware/config.h"
- "platformio run --environment esp8266"
- cp .pio/build/esp8266/firmware.bin esp8266.bin
- name: release
image: plugins/gitea-release
settings:
base_url: https://gitea.ctdo.de
api_key:
from_secret: gitea_token
files: ./*.bin
upload_port:
from_secret: hostname
when:
event: tag