esp-volumeknob/.drone.yml

28 lines
751 B
YAML

---
kind: pipeline
type: docker
name: default
steps:
- name: build
image: python:3.10
commands:
- "pip install -U platformio"
- "platformio run --environment esp8266"
- "sed -i date/homie/config.json 's/WIFISSID/${iotssid}/'"
- "sed -i date/homie/config.json 's/WIFIPASS/${iotpwd}/'"
- "sed -i date/homie/config.json 's/HOSTNAME/${hostname}/g'"
- "platformio run --target upload --environment d1_mini"
- "platformio run --target uploadfs --environment d1_mini"
- name: release
image: plugins/gitea-release
settings:
base_url: https://gitea.ctdo.de
files: ./*.bin
upload_port:
from_secret: hostname
iotssid:
from_secret: iotssid
iotpwd:
from_secret: iotpwd
when:
event: tag