curl timeout 3minutes
continuous-integration/drone/push Build is failing Details
continuous-integration/drone Build is failing Details

This commit is contained in:
starcalc 2022-08-30 21:34:50 +02:00
parent 6d20017e61
commit db9c8b610b
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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