Test other image
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
309478a4c6
commit
06a9075440
|
@ -11,24 +11,21 @@ steps:
|
||||||
hostname:
|
hostname:
|
||||||
from_secret: hostname
|
from_secret: hostname
|
||||||
- name: build
|
- name: build
|
||||||
image: python:3.10
|
image: eclipse/platformio
|
||||||
commands:
|
commands:
|
||||||
- sed -i "s/WIFISSID/$IOTSSID/" data/homie/config.json
|
- sed -i "s/WIFISSID/$IOTSSID/" data/homie/config.json
|
||||||
- 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=$(cat lastknownip)
|
- lastknownip=$(cat lastknownip)
|
||||||
- sed -i "s/HOSTNAME/$lastknownip/g" platformio.ini
|
# - pip install -U platformio
|
||||||
- cat data/homie/config.json
|
|
||||||
- cat platformio.ini
|
|
||||||
- pip install -U platformio
|
|
||||||
# Build image
|
# Build image
|
||||||
- platformio run --environment d1_mini
|
- platformio run --environment d1_mini
|
||||||
# Build file system image
|
# Build file system image
|
||||||
- platformio run --target buildfs --environment d1_mini
|
- platformio run --target buildfs --environment d1_mini
|
||||||
# Upload image with espota-gateway
|
# Upload image with espota-gateway
|
||||||
- |
|
- |
|
||||||
curl --request POST --url "https://espota.ctdo.de/" --header "Content-Type: multipart/form-data" --form ip="$lastknownip" --form firmware=@.pio/build/d1_mini/firmware.bin -N
|
curl -k --request POST --url "https://espota.ctdo.de/" --header "Content-Type: multipart/form-data" --form ip="$lastknownip" --form firmware=@.pio/build/d1_mini/firmware.bin -N
|
||||||
# TODO: Upload file system image with espota-gateway, if the device is available again (or leave it to espota-gateway to retry often enough)
|
# TODO: Upload file system image with espota-gateway, if the device is available again (or leave it to espota-gateway to retry often enough)
|
||||||
#- platformio run --target upload --environment d1_mini
|
#- platformio run --target upload --environment d1_mini
|
||||||
# (Build if necessary and) Upload Filesystem Image (here: OTA)
|
# (Build if necessary and) Upload Filesystem Image (here: OTA)
|
||||||
|
|
Loading…
Reference in New Issue