Compare commits
5 commits
e90b9a2a4c
...
737f93245b
Author | SHA1 | Date | |
---|---|---|---|
737f93245b | |||
c156871150 | |||
710085311e | |||
cd8aef242e | |||
ffe68d8658 |
1 changed files with 15 additions and 11 deletions
26
.drone.yml
26
.drone.yml
|
@ -25,8 +25,10 @@ steps:
|
||||||
image: curlimages/curl
|
image: curlimages/curl
|
||||||
environment:
|
environment:
|
||||||
PACKAGE_UPLOAD_URL: https://code.apps.glenux.net/api/packages/glenux/generic/mfm
|
PACKAGE_UPLOAD_URL: https://code.apps.glenux.net/api/packages/glenux/generic/mfm
|
||||||
RELEASES_URL: https://code.apps.glenux.net/api/repos/glenux/releases
|
RELEASES_URL: https://code.apps.glenux.net/api/repos/glenux/mfm/releases
|
||||||
PACKAGE_BASENAME: mfm_linux_amd64
|
PACKAGE_BASENAME: mfm_linux_amd64
|
||||||
|
RELEASE_UPLOAD_TOKEN:
|
||||||
|
from_secret: RELEASE_UPLOAD_TOKEN
|
||||||
PACKAGE_UPLOAD_TOKEN:
|
PACKAGE_UPLOAD_TOKEN:
|
||||||
from_secret: PACKAGE_UPLOAD_TOKEN
|
from_secret: PACKAGE_UPLOAD_TOKEN
|
||||||
when:
|
when:
|
||||||
|
@ -43,17 +45,19 @@ steps:
|
||||||
--upload-file "/_cache/bin/$PACKAGE_BASENAME" \
|
--upload-file "/_cache/bin/$PACKAGE_BASENAME" \
|
||||||
"$PACKAGE_UPLOAD_URL/$DRONE_TAG/$PACKAGE_BASENAME"
|
"$PACKAGE_UPLOAD_URL/$DRONE_TAG/$PACKAGE_BASENAME"
|
||||||
- |
|
- |
|
||||||
curl -H "Authorization: token $PACKAGE_UPLOAD_TOKEN" \
|
curl -X 'POST' \
|
||||||
-X POST \
|
-H 'Authorization: token $RELEASE_UPLOAD_TOKEN' \
|
||||||
-H "accept: application/json" \
|
-H 'accept: application/json' \
|
||||||
-H "content-type: application/json" \
|
-H 'Content-Type: application/json' \
|
||||||
-d "{\"tag_name\": \"$DRONE_TAG\", \"target_commitish\": \"$DRONE_COMMIT_SHA\"}" \
|
-d "{\"body\": \"DRAFT\", \"draft\": true, \"name\": \"$DRONE_TAG - DRAFT\", \"prerelease\": false, \"tag_name\": \"$DRONE_TAG\", \"target_commitish\": \"$DRONE_COMMIT_SHA\"}" \
|
||||||
$RELEASES_URL
|
"$RELEASES_URL"
|
||||||
- |
|
- |
|
||||||
curl -H "Authorization: token $PACKAGE_UPLOAD_TOKEN" \
|
set -x
|
||||||
-H "accept: application/json" \
|
curl -X POST \
|
||||||
-H "Content-Type: multipart/form-data" \
|
-H "Authorization: token $RELEASE_UPLOAD_TOKEN" \
|
||||||
--upload-file "attachment=@/_cache/bin/$PACKAGE_BASENAME" \
|
-H "accept: application/json" \
|
||||||
|
-H "Content-Type: multipart/form-data" \
|
||||||
|
-F "attachment=@/_cache/bin/$PACKAGE_BASENAME" \
|
||||||
"$RELEASES_URL/$DRONE_TAG/assets?name=$PACKAGE_BASENAME"
|
"$RELEASES_URL/$DRONE_TAG/assets?name=$PACKAGE_BASENAME"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue