From 4b8087bf8d4f5f88ce6032555552e88e64665962 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Thu, 29 Dec 2022 15:16:32 -0500 Subject: [PATCH] Try using curl --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index c99d744..8c52df9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -30,7 +30,7 @@ steps: # target: live-cli/${DRONE_BUILD_CREATED}-${DRONE_COMMIT} - name: Publish Artifacts - image: ubuntu + image: curlimages/curl volumes: - name: dist path: /dist @@ -40,7 +40,7 @@ steps: GITEA_SVC_PASSWORD: from_secret: GITEA_SVC_PASSWORD commands: - - set -ex; cd /dist; for f in *; do curl --user "drone-svc:${GITEA_SVC_PASSWORD}" -X PUT https://gitea.example.com/api/packages/public/generic/${DRONE_REPO_NAME}/$(date -Isecond)-${DRONE_COMMIT}/${f}; done + - sh -c 'set -ex; cd /dist; for f in *; do curl --user "drone-svc:${GITEA_SVC_PASSWORD}" -X PUT https://gitea.example.com/api/packages/public/generic/${DRONE_REPO_NAME}/$(date -Isecond)-${DRONE_COMMIT}/${f}; done' - name: Publish release image: plugins/gitea-release