Upload artifacts to registry
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Austen Adler 2022-12-29 15:09:58 -05:00
parent 6e258ad2a4
commit bdd28da59e

View File

@ -29,7 +29,20 @@ steps:
# source: dist/**/* # source: dist/**/*
# target: live-cli/${DRONE_BUILD_CREATED}-${DRONE_COMMIT} # 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 image: plugins/gitea-release
when: when:
event: event: