Compare commits
3 commits
1bb28b5fd1
...
494d565b4e
Author | SHA1 | Date | |
---|---|---|---|
494d565b4e | |||
09567fb868 | |||
8a989c3e39 |
1 changed files with 7 additions and 4 deletions
11
.drone.yml
11
.drone.yml
|
@ -44,9 +44,12 @@ steps:
|
|||
- apk add --update --no-cache curl jq
|
||||
- env |grep DRONE
|
||||
- |
|
||||
curl -H "Authorization: token $PACKAGE_UPLOAD_TOKEN" \
|
||||
--upload-file "/_cache/bin/$PACKAGE_BASENAME" \
|
||||
"$PACKAGE_UPLOAD_URL/$DRONE_TAG/$PACKAGE_BASENAME"
|
||||
for package_path in /_cache/packages/* ; do \
|
||||
package_name="$(basename "$package_path")" ; \
|
||||
curl -H "Authorization: token $PACKAGE_UPLOAD_TOKEN" \
|
||||
--upload-file "$package_path" \
|
||||
"$PACKAGE_UPLOAD_URL/$DRONE_TAG/$PACKAGE_BASENAME" ; \
|
||||
done
|
||||
- |
|
||||
set -x
|
||||
curl -X POST \
|
||||
|
@ -67,7 +70,7 @@ steps:
|
|||
- |
|
||||
set -x
|
||||
for package_path in /_cache/packages/* ; do \
|
||||
package_name="$(basename "$package_path")"
|
||||
package_name="$(basename "$package_path")" ; \
|
||||
curl -X POST \
|
||||
-H "Authorization: token $RELEASE_UPLOAD_TOKEN" \
|
||||
-H "accept: application/json" \
|
||||
|
|
Loading…
Reference in a new issue