From a80a745da3b33cbad92f5575fc3e55cf97872968 Mon Sep 17 00:00:00 2001 From: starcalc Date: Tue, 7 Jun 2022 22:21:22 +0200 Subject: [PATCH] prereq in mosquitto clients? --- .drone.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index a13de60..d2765f5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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