Automatisierung des Upload-Hosts
continuous-integration/drone/push Build is failing Details

This commit is contained in:
starcalc 2022-06-07 22:17:19 +02:00
parent 8747e9694f
commit 4c4ae2411f
2 changed files with 4 additions and 3 deletions

View File

@ -10,8 +10,10 @@ steps:
- 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
- lastknownip=$(mosquitto_sub -h mqtt.ctdo.de -t "homie/$hostname/\$localip" -C 1)
- sed -i "s/HOSTNAME/$lastknownip/g" platformio.ini
- cat data/homie/config.json
- cat platformio.ini
- pip install -U platformio
- platformio run --environment d1_mini
environment:

View File

@ -25,6 +25,5 @@ lib_deps =
https://github.com/adafruit/DHT-sensor-library
https://github.com/adafruit/Adafruit_Sensor
upload_protocol = espota
upload_port = 172.23.23.12 # volumeknob3
upload_port = HOSTNAME # 172.23.23.12 # volumeknob3
upload_flags = --host_port=54321
#upload_port = 10.90.25.206