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
|
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
|
||||||
|
|
Loading…
Reference in New Issue