Rotary-Dial/drone/espota-deploy.sh
neri 32b0dceb77
Some checks failed
continuous-integration/drone/push Build is failing
configure drone build
2022-11-27 14:15:18 +01:00

15 lines
282 B
Bash

#!/bin/env sh
device_ip="$1"
file="$2"
curl \
--insecure \
--no-progress-meter \
--fail-with-body \
--request POST \
--url "https://espota.ctdo.de/" \
--header "Content-Type: multipart/form-data" \
--form ip="$device_ip" \
--form "firmware=@$file" \
--no-buffer