bd3bc5c168
* Updating the CI system with the publication of releases and binary files on github Signed-off-by: Denis S. Soldatov aka General-Beck <general.beck@gmail.com> * add missed scripts * chmod +x scripts * fix download link for github * rebuilding CI scripts * small fixes * update submodule wasm tests * ci: fix merge leftovers * ci: remove gitlab-next from ci triggers * ci: fix git add in docs script * ci: use nightly instead of master for publish triggers * ci: remove sleep from gitlab config * ci: replace ':' with '-' in gitlab targets * ci: fix recursive copy in docs script
20 lines
354 B
Bash
Executable File
20 lines
354 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eu
|
|
|
|
DATA=$1
|
|
ADDRESS=$2
|
|
|
|
CODE=$(curl -o out.txt -w '%{http_code}' --data $DATA $ADDRESS)
|
|
cat out.txt && rm out.txt
|
|
echo "\n"
|
|
|
|
if [[ $CODE -eq 200 ]]; then
|
|
echo 'Pushed to updater service.';
|
|
elif [[ $CODE -eq 202 ]]; then
|
|
echo 'Updater service ignored request.';
|
|
else
|
|
echo 'Unable to push info to updater service.';
|
|
exit 2
|
|
fi
|