mirror of
https://github.com/ViViDboarder/drone-webdav.git
synced 2025-01-02 10:37:34 +00:00
Fail build when upload fails
Also updates test to catch this issue
This commit is contained in:
parent
06beaed6ab
commit
5f3f05247a
2
.github/workflows/docker-publish.yml
vendored
2
.github/workflows/docker-publish.yml
vendored
@ -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 }}
|
||||
|
||||
|
2
push.sh
2
push.sh
@ -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
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
version: '2.4'
|
||||
version: '3'
|
||||
services:
|
||||
webdav:
|
||||
image: sashgorokhov/webdav
|
||||
image: bytemark/webdav
|
||||
environment:
|
||||
USERNAME: jdoe
|
||||
PASSWORD: hunter2
|
||||
|
@ -1,8 +1,10 @@
|
||||
---
|
||||
version: '2.4'
|
||||
version: '3'
|
||||
services:
|
||||
webdav:
|
||||
image: sashgorokhov/webdav
|
||||
image: bytemark/webdav
|
||||
environment:
|
||||
ANONYMOUS_METHODS: ALL
|
||||
|
||||
plugin:
|
||||
build:
|
||||
|
Loading…
Reference in New Issue
Block a user