prereq in mosquitto clients?
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
4c4ae2411f
commit
a80a745da3
|
@ -3,6 +3,10 @@ kind: pipeline
|
|||
type: docker
|
||||
name: default
|
||||
steps:
|
||||
- name: prereq
|
||||
image: cburki/mosquitto-clients
|
||||
commands:
|
||||
- lastknownip=$(mosquitto_sub -h mqtt.ctdo.de -t "homie/$hostname/\$localip" -C 1)
|
||||
- name: build
|
||||
image: python:3.10
|
||||
commands:
|
||||
|
@ -10,7 +14,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=$(mosquitto_sub -h mqtt.ctdo.de -t "homie/$hostname/\$localip" -C 1)
|
||||
- echo $lastknownip
|
||||
- sed -i "s/HOSTNAME/$lastknownip/g" platformio.ini
|
||||
- cat data/homie/config.json
|
||||
- cat platformio.ini
|
||||
|
|
Loading…
Reference in New Issue