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 - name: Setup Docker buildx
id: buildx id: buildx
uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf
- name: Available platforms - name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }} run: echo ${{ steps.buildx.outputs.platforms }}

View File

@ -37,7 +37,7 @@ fi
while [ "${PLUGIN_ATTEMPTS}" -gt 0 ]; do while [ "${PLUGIN_ATTEMPTS}" -gt 0 ]; do
# Uploading the file # 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 # Terminate the script as soon as the upload is successful
echo "[INFO] Upload was successful." echo "[INFO] Upload was successful."
exit 0 exit 0

View File

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

View File

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