mirror of
https://github.com/ViViDboarder/drone-webdav.git
synced 2025-01-06 12:37:33 +00:00
Add multi file test
This commit is contained in:
parent
55ea8f5fe7
commit
eaf8993535
@ -1,6 +1,6 @@
|
|||||||
FROM alpine:3.11
|
FROM alpine:3.11
|
||||||
|
|
||||||
RUN apk --no-cache add bash=~5.0 curl=~7.67 ca-certificates=~20191127
|
RUN apk --no-cache add bash=~5.0 curl=~7.79 ca-certificates=~20191127
|
||||||
COPY push.sh /bin/
|
COPY push.sh /bin/
|
||||||
RUN chmod +x /bin/push.sh
|
RUN chmod +x /bin/push.sh
|
||||||
|
|
||||||
|
@ -12,9 +12,9 @@ services:
|
|||||||
context: ../
|
context: ../
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
volumes:
|
volumes:
|
||||||
- './test.txt:/test.txt'
|
- '.:/test'
|
||||||
environment:
|
environment:
|
||||||
PLUGIN_FILE: '/test.txt'
|
PLUGIN_FILE: '/test/test{1,2}.txt'
|
||||||
PLUGIN_DESTINATION: 'http://webdav/'
|
PLUGIN_DESTINATION: 'http://webdav/'
|
||||||
PLUGIN_USERNAME: jdoe
|
PLUGIN_USERNAME: jdoe
|
||||||
PLUGIN_PASSWORD: hunter2
|
PLUGIN_PASSWORD: hunter2
|
||||||
|
@ -9,9 +9,9 @@ services:
|
|||||||
context: ../
|
context: ../
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
volumes:
|
volumes:
|
||||||
- './test.txt:/test.txt'
|
- '.:/test'
|
||||||
environment:
|
environment:
|
||||||
PLUGIN_FILE: '/test.txt'
|
PLUGIN_FILE: '/test/test{1,2}.txt'
|
||||||
PLUGIN_DESTINATION: 'http://webdav/'
|
PLUGIN_DESTINATION: 'http://webdav/'
|
||||||
PLUGIN_TIMEOUT: 10
|
PLUGIN_TIMEOUT: 10
|
||||||
PLUGIN_ATTEMPTS: 4
|
PLUGIN_ATTEMPTS: 4
|
||||||
|
1
tests/test2.txt
Normal file
1
tests/test2.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
ohai
|
Loading…
Reference in New Issue
Block a user