From b0e4e640bc04ba12089106a835f4edd77aaf35c4 Mon Sep 17 00:00:00 2001 From: starcalc Date: Wed, 22 Jun 2022 19:10:05 +0200 Subject: [PATCH] Use espota-gateway --- .drone.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index c45d3f7..2ecf75b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -24,12 +24,15 @@ steps: - pip install -U platformio # Build image - platformio run --environment d1_mini - # Upload image - - platformio run --target upload --environment d1_mini - # Build Filesystem Image -# - platformio run --target buildfs --environment d1_mini + # Build file system image + - platformio run --target buildfs --environment d1_mini + # Upload image with espota-gateway + 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) - - platformio run --target uploadfs --environment d1_mini + # - platformio run --target uploadfs --environment d1_mini + environment: hostname: from_secret: hostname