change HOSTNAME to HOSt
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
9a4730e2d1
commit
111f7aa6e1
12
.drone.yml
12
.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
|
||||
|
|
Loading…
Reference in New Issue