Add support for uploading the Debian package.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
d4b26d9e3e
commit
299273c72f
14
.drone.yml
14
.drone.yml
|
@ -47,8 +47,18 @@ steps:
|
||||||
- name: create-debian-package
|
- name: create-debian-package
|
||||||
image: code.birch-tree.net/dorian/mirror-server:build
|
image: code.birch-tree.net/dorian/mirror-server:build
|
||||||
commands:
|
commands:
|
||||||
- cargo deb
|
- export PKG_PATH=$(cargo deb)
|
||||||
# - TODO: Add a publish step based on the publish-deb.sh
|
- export PKG_FILENAME=$(basename $PKG_PATH)
|
||||||
|
- export PKG_NAME=$(basename $PKG_PATH | awk -F _ '{print $1}')
|
||||||
|
- export PKG_VERSION=$(basename $PKG_PATH | awk -F _ '{print $2}')
|
||||||
|
- |
|
||||||
|
curl --user "${USERNAME}:${PASSWORD}" -X PUT
|
||||||
|
--upload-file "${PKG_PATH}"
|
||||||
|
"https://code.birch-tree.net/api/packages/${USERNAME}/generic/${PKG_NAME}/${PKG_VERSION}/${PKG_FILENAME}"
|
||||||
|
environment:
|
||||||
|
USERNAME: dorian
|
||||||
|
PASSWORD:
|
||||||
|
from_secret: gitea-release-password
|
||||||
depends_on:
|
depends_on:
|
||||||
- test
|
- test
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue