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