esp-volumeknob/.drone.yml

31 lines
879 B
YAML

---
kind: pipeline
type: docker
name: default
steps:
- name: build
image: python:3.10
commands:
- sed -i "s/WIFISSID/$IOTSSID/" data/homie/config.json
- sed -i "s/WIFIPASS/$iotpwd/" data/homie/config.json
- sed -i "s/HOSTNAME/$hostname/g" data/homie/config.json
- sed -i "s/HOSTNAME/$hostname/g" data/homie/config.json
- sed -i "s/HOSTNAME/$hostname/g" platformio.ini
- cat data/homie/config.json
- pip install -U platformio
- platformio run --environment esp8266
- 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
hostname:
from_secret: hostname
IOTSSID:
from_secret: iotssid
iotpwd:
from_secret: iotpwd
when:
event: tag