mirror of
https://github.com/ViViDboarder/drone-webdav.git
synced 2025-01-04 19:47:33 +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
|
- 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 }}
|
||||||
|
|
||||||
|
2
push.sh
2
push.sh
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user