Fail build when upload fails

Also updates test to catch this issue
This commit is contained in:
ViViDboarder 2022-08-10 15:25:05 -07:00
parent 06beaed6ab
commit 5f3f05247a
4 changed files with 8 additions and 6 deletions

View File

@ -51,7 +51,7 @@ jobs:
- name: Setup Docker buildx
id: buildx
uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}

View File

@ -37,7 +37,7 @@ fi
while [ "${PLUGIN_ATTEMPTS}" -gt 0 ]; do
# Uploading the file
curl "${ARGS[@]}" --upload-file "$PLUGIN_FILE" "$PLUGIN_DESTINATION" && {
curl --fail-with-body --show-error --silent "${ARGS[@]}" --upload-file "$PLUGIN_FILE" "$PLUGIN_DESTINATION" && {
# Terminate the script as soon as the upload is successful
echo "[INFO] Upload was successful."
exit 0

View File

@ -1,8 +1,8 @@
---
version: '2.4'
version: '3'
services:
webdav:
image: sashgorokhov/webdav
image: bytemark/webdav
environment:
USERNAME: jdoe
PASSWORD: hunter2

View File

@ -1,8 +1,10 @@
---
version: '2.4'
version: '3'
services:
webdav:
image: sashgorokhov/webdav
image: bytemark/webdav
environment:
ANONYMOUS_METHODS: ALL
plugin:
build: