curl timeout 3minutes
This commit is contained in:
parent
6d20017e61
commit
db9c8b610b
|
@ -33,7 +33,7 @@ steps:
|
||||||
for thisip in $(cat lastknownips)
|
for thisip in $(cat lastknownips)
|
||||||
do
|
do
|
||||||
echo "Current IP to upload is $thisip"
|
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
|
done
|
||||||
- name: upload configs
|
- name: upload configs
|
||||||
image: curlimages/curl
|
image: curlimages/curl
|
||||||
|
|
|
@ -6,7 +6,7 @@ do
|
||||||
curhost = $(cat ${line} | cut -d ',' -f1)
|
curhost = $(cat ${line} | cut -d ',' -f1)
|
||||||
curip = $(cat ${line} | cut -d ',' -f2)
|
curip = $(cat ${line} | cut -d ',' -f2)
|
||||||
echo "Host ${curhost} and IP ${curip}"
|
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)
|
done < <(cat lastknownhostips)
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#while IFS="," read -r curhost curip
|
#while IFS="," read -r curhost curip
|
||||||
|
|
Loading…
Reference in New Issue