prereq in mosquitto clients?
continuous-integration/drone/push Build was killed Details

This commit is contained in:
starcalc 2022-06-07 22:21:22 +02:00
parent 4c4ae2411f
commit a80a745da3
1 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,10 @@ kind: pipeline
type: docker type: docker
name: default name: default
steps: steps:
- name: prereq
image: cburki/mosquitto-clients
commands:
- lastknownip=$(mosquitto_sub -h mqtt.ctdo.de -t "homie/$hostname/\$localip" -C 1)
- name: build - name: build
image: python:3.10 image: python:3.10
commands: commands:
@ -10,7 +14,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=$(mosquitto_sub -h mqtt.ctdo.de -t "homie/$hostname/\$localip" -C 1) - echo $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