Fix upload
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Michel Roux 2021-05-18 15:27:19 +02:00
parent 7bdf52f83f
commit 1dcd939bc1
2 changed files with 4 additions and 7 deletions

View File

@ -18,16 +18,13 @@ steps:
image: debian
commands:
- apt-get update
- apt-get install -y --no-install-recommends calibre
- apt-get install -y --no-install-recommends calibre curl
- bash -x convert.sh
- name: upload
image: curlimages/curl
commands:
- bash -x upload.sh
environment:
USER:
USERNAME:
from_secret: nextcloud_user
PASS:
PASSWORD:
from_secret: nextcloud_password
---

View File

@ -2,5 +2,5 @@
for FILE in output/*
do
curl -Ss -u "${USER}":"${PASS}" -T "${FILE}" "https://cloud.crystalyx.net/remote.php/dav/files/${USER}/Public/TWI/${FILE##*/}"
curl -Ss -u "${USERNAME}":"${PASSWORD}" -T "${FILE}" "https://cloud.crystalyx.net/remote.php/dav/files/${USERNAME}/Public/TWI/${FILE##*/}"
done