Old (working) image, new seperate step "upload"
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
fb9c122486
commit
750cbdf443
12
.drone.yml
12
.drone.yml
|
@ -11,20 +11,24 @@ steps:
|
||||||
hostname:
|
hostname:
|
||||||
from_secret: hostname
|
from_secret: hostname
|
||||||
- name: build
|
- name: build
|
||||||
image: eclipse/platformio
|
image: python:3.10
|
||||||
commands:
|
commands:
|
||||||
- sudo chmod -R a+rwx .
|
|
||||||
- platformio --version
|
|
||||||
- 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)
|
||||||
# - pip install -U platformio
|
- sed -i "s/HOSTNAME/$lastknownip/g" platformio.ini
|
||||||
|
- 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
|
||||||
|
- name: upload
|
||||||
|
image: python:3.10
|
||||||
|
commands:
|
||||||
# Upload image with espota-gateway
|
# Upload image with espota-gateway
|
||||||
- |
|
- |
|
||||||
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
|
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
|
||||||
|
|
Loading…
Reference in New Issue