Use espota-gateway

This commit is contained in:
starcalc 2022-06-22 19:10:05 +02:00
parent b2063d4f73
commit b0e4e640bc
1 changed files with 8 additions and 5 deletions

View File

@ -24,12 +24,15 @@ steps:
- pip install -U platformio - pip install -U platformio
# Build image # Build image
- platformio run --environment d1_mini - platformio run --environment d1_mini
# Upload image # Build file system image
- platformio run --target upload --environment d1_mini - platformio run --target buildfs --environment d1_mini
# Build Filesystem Image # Upload image with espota-gateway
# - platformio run --target buildfs --environment d1_mini curl -s --request POST --url http://espota.ctdo.de:8180/ --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)
#- 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)
- platformio run --target uploadfs --environment d1_mini # - platformio run --target uploadfs --environment d1_mini
environment: environment:
hostname: hostname:
from_secret: hostname from_secret: hostname