From bdd28da59e5d358fcb9eefdd802b8ee0bf49fa1c Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Thu, 29 Dec 2022 15:09:58 -0500 Subject: [PATCH] Upload artifacts to registry --- .drone.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index b95dfa2..c99d744 100644 --- a/.drone.yml +++ b/.drone.yml @@ -29,7 +29,20 @@ steps: # source: dist/**/* # target: live-cli/${DRONE_BUILD_CREATED}-${DRONE_COMMIT} - - name: Gitea Artifacts + - name: Publish Artifacts + image: ubuntu + volumes: + - name: dist + path: /dist + environment: + GITEA_SVC_USERNAME: + from_secrete: GITEA_SVC_USERNAME + 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 + + - name: Publish release image: plugins/gitea-release when: event: