Compare commits
No commits in common. "ba45f06b0a70f32faf9d134ac9a0336f3aa3dca3" and "3f6acbbee9ca88ed347f053733deb809f37c6d13" have entirely different histories.
ba45f06b0a
...
3f6acbbee9
2 changed files with 3 additions and 13 deletions
14
.drone.yml
14
.drone.yml
|
@ -22,7 +22,7 @@ steps:
|
||||||
- cp -r bin/mfm /_cache/bin/$PACKAGE_BASENAME
|
- cp -r bin/mfm /_cache/bin/$PACKAGE_BASENAME
|
||||||
|
|
||||||
- name: publish:tag
|
- name: publish:tag
|
||||||
image: alpine
|
image: curlimages/curl
|
||||||
environment:
|
environment:
|
||||||
PACKAGE_UPLOAD_URL: https://code.apps.glenux.net/api/v1/packages/glenux/generic/mfm
|
PACKAGE_UPLOAD_URL: https://code.apps.glenux.net/api/v1/packages/glenux/generic/mfm
|
||||||
RELEASES_URL: https://code.apps.glenux.net/api/v1/repos/glenux/mfm/releases
|
RELEASES_URL: https://code.apps.glenux.net/api/v1/repos/glenux/mfm/releases
|
||||||
|
@ -39,7 +39,6 @@ steps:
|
||||||
- name: cache
|
- name: cache
|
||||||
path: /_cache
|
path: /_cache
|
||||||
commands:
|
commands:
|
||||||
- apk add --update --no-cache curl jq
|
|
||||||
- env |grep DRONE
|
- env |grep DRONE
|
||||||
- |
|
- |
|
||||||
curl -H "Authorization: token $PACKAGE_UPLOAD_TOKEN" \
|
curl -H "Authorization: token $PACKAGE_UPLOAD_TOKEN" \
|
||||||
|
@ -53,15 +52,6 @@ steps:
|
||||||
-H 'Content-Type: 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\"}" \
|
-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 -X 'GET' \
|
|
||||||
-H 'accept: application/json' \
|
|
||||||
"$RELEASES_URL/tags/$DRONE_TAG"
|
|
||||||
- |
|
|
||||||
TAG_ID="$(curl -X 'GET' \
|
|
||||||
-H 'accept: application/json' \
|
|
||||||
"$RELEASES_URL/tags/$DRONE_TAG" | jq -r .id)"
|
|
||||||
echo "TAG_ID=$TAG_ID"
|
|
||||||
- |
|
- |
|
||||||
set -x
|
set -x
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
|
@ -69,7 +59,7 @@ steps:
|
||||||
-H "accept: application/json" \
|
-H "accept: application/json" \
|
||||||
-H "Content-Type: multipart/form-data" \
|
-H "Content-Type: multipart/form-data" \
|
||||||
-F "attachment=@/_cache/bin/$PACKAGE_BASENAME" \
|
-F "attachment=@/_cache/bin/$PACKAGE_BASENAME" \
|
||||||
"$RELEASES_URL/$TAG_ID/assets?name=$PACKAGE_BASENAME"
|
"$RELEASES_URL/$DRONE_TAG/assets?name=$PACKAGE_BASENAME"
|
||||||
|
|
||||||
|
|
||||||
# FIXME: handle multi-arch
|
# FIXME: handle multi-arch
|
||||||
|
|
|
@ -49,7 +49,7 @@ Global options:
|
||||||
-c, --config FILE Specify configuration file
|
-c, --config FILE Specify configuration file
|
||||||
-h, --help Display this help
|
-h, --help Display this help
|
||||||
|
|
||||||
Commands (not implemented yet):
|
Commands:
|
||||||
create Add a new filesystem
|
create Add a new filesystem
|
||||||
delete Remove an existing filesystem
|
delete Remove an existing filesystem
|
||||||
edit Modify the configuration
|
edit Modify the configuration
|
||||||
|
|
Loading…
Add table
Reference in a new issue