filename
This commit is contained in:
parent
ef98ba8547
commit
453076a1ab
|
@ -7,7 +7,7 @@ steps:
|
|||
image: cburki/mosquitto-clients
|
||||
commands:
|
||||
# - 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:
|
||||
hostname:
|
||||
from_secret: hostname
|
||||
|
@ -18,7 +18,7 @@ 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
|
||||
- lastknownip=$(cat /tmp/lastknownip)
|
||||
- lastknownip=$(cat lastknownip)
|
||||
- sed -i "s/HOSTNAME/$lastknownip/g" platformio.ini
|
||||
- cat data/homie/config.json
|
||||
- cat platformio.ini
|
||||
|
|
Loading…
Reference in New Issue