From 111f7aa6e175e81a37b572fc1c375d8f3a9bd19f Mon Sep 17 00:00:00 2001 From: starcalc Date: Tue, 30 Aug 2022 18:07:19 +0200 Subject: [PATCH] change HOSTNAME to HOSt --- .drone.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index ac2de97..8a9a74d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,17 +7,17 @@ steps: - name: fetch ip image: cburki/mosquitto-clients commands: - - echo "Hostname is ---${HOSTNAME}--- $HOSTNAME ... \$HOSTNAME ... \${HOSTNAME} +++ $\{HOSTNAME\}" - - mosquitto_sub -h raum.ctdo.de -t "homie/${HOSTNAME}/\$localip" -C 1 | tr -d '\n' - - mosquitto_sub -h raum.ctdo.de -t "homie/${HOSTNAME}/\$localip" -C 1 | tr -d '\n' >lastknownip + - echo "Hostname is ---${HOST}--- $HOST ... \$HOST ... \${HOST} +++ $\{HOST\}" + - mosquitto_sub -h raum.ctdo.de -t "homie/${HOST}/\$localip" -C 1 | tr -d '\n' + - mosquitto_sub -h raum.ctdo.de -t "homie/${HOST}/\$localip" -C 1 | tr -d '\n' >lastknownip - cat "lastknownip" - name: configure image: alpine commands: - sed -i "s/WIFISSID/$IOTSSID/" 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/${HOST}/g" data/homie/config.json + - sed -i "s/HOSTNAME/${HOST}/g" data/homie/config.json - lastknownip=$(cat lastknownip) - sed -i "s/HOSTNAME/$lastknownip/g" platformio.ini environment: @@ -51,6 +51,6 @@ steps: matrix: include: - HOSTNAME: + HOST: - blinky1 - blinky2