filename
continuous-integration/drone/push Build is failing Details
continuous-integration/drone Build is failing Details

This commit is contained in:
starcalc 2022-06-07 22:38:19 +02:00
parent ef98ba8547
commit 453076a1ab
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ steps:
image: cburki/mosquitto-clients image: cburki/mosquitto-clients
commands: commands:
# - echo mosquitto_sub -h mqtt.ctdo.de -t "homie/$hostname/\$localip" -C 1 # - echo mosquitto_sub -h mqtt.ctdo.de -t "homie/$hostname/\$localip" -C 1
- mosquitto_sub -h mqtt.ctdo.de -t "homie/$hostname/\$localip" -C 1 | tr -d '\n' >/tmp/lastknownip - mosquitto_sub -h mqtt.ctdo.de -t "homie/$hostname/\$localip" -C 1 | tr -d '\n' >lastknownip
environment: environment:
hostname: hostname:
from_secret: hostname from_secret: hostname
@ -18,7 +18,7 @@ steps:
- sed -i "s/WIFIPASS/$iotpwd/" 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" data/homie/config.json - sed -i "s/HOSTNAME/$hostname/g" data/homie/config.json
- lastknownip=$(cat /tmp/lastknownip) - lastknownip=$(cat lastknownip)
- sed -i "s/HOSTNAME/$lastknownip/g" platformio.ini - sed -i "s/HOSTNAME/$lastknownip/g" platformio.ini
- cat data/homie/config.json - cat data/homie/config.json
- cat platformio.ini - cat platformio.ini