Try using curl
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Austen Adler 2022-12-29 15:16:32 -05:00
parent 3471ea3c0b
commit 4b8087bf8d

View File

@ -30,7 +30,7 @@ steps:
# target: live-cli/${DRONE_BUILD_CREATED}-${DRONE_COMMIT} # target: live-cli/${DRONE_BUILD_CREATED}-${DRONE_COMMIT}
- name: Publish Artifacts - name: Publish Artifacts
image: ubuntu image: curlimages/curl
volumes: volumes:
- name: dist - name: dist
path: /dist path: /dist
@ -40,7 +40,7 @@ steps:
GITEA_SVC_PASSWORD: GITEA_SVC_PASSWORD:
from_secret: GITEA_SVC_PASSWORD from_secret: GITEA_SVC_PASSWORD
commands: 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 - name: Publish release
image: plugins/gitea-release image: plugins/gitea-release