curl timeout 3minutes
This commit is contained in:
parent
6d20017e61
commit
db9c8b610b
|
@ -33,7 +33,7 @@ steps:
|
|||
for thisip in $(cat lastknownips)
|
||||
do
|
||||
echo "Current IP to upload is $thisip"
|
||||
curl --insecure --no-progress-meter --fail-with-body --request POST --url "https://espota.ctdo.de/" --header "Content-Type: multipart/form-data" --form ip="$thisip" --form firmware=@.pio/build/d1_mini/firmware.bin --no-buffer
|
||||
curl -m 180 --insecure --no-progress-meter --fail-with-body --request POST --url "https://espota.ctdo.de/" --header "Content-Type: multipart/form-data" --form ip="$thisip" --form firmware=@.pio/build/d1_mini/firmware.bin --no-buffer
|
||||
done
|
||||
- name: upload configs
|
||||
image: curlimages/curl
|
||||
|
|
|
@ -6,7 +6,7 @@ do
|
|||
curhost = $(cat ${line} | cut -d ',' -f1)
|
||||
curip = $(cat ${line} | cut -d ',' -f2)
|
||||
echo "Host ${curhost} and IP ${curip}"
|
||||
curl --insecure --no-progress-meter --fail-with-body --request POST --url "https://espota.ctdo.de/" --header "Content-Type: multipart/form-data" --form ip="$curip" --form spiffs=@.pio/build/d1_mini/spiffs_${curhost}.bin --no-buffer
|
||||
curl -m 180 --insecure --no-progress-meter --fail-with-body --request POST --url "https://espota.ctdo.de/" --header "Content-Type: multipart/form-data" --form ip="$curip" --form spiffs=@.pio/build/d1_mini/spiffs_${curhost}.bin --no-buffer
|
||||
done < <(cat lastknownhostips)
|
||||
#!/bin/bash
|
||||
#while IFS="," read -r curhost curip
|
||||
|
|
Loading…
Reference in New Issue