Commit ba0b4700 authored by Kristian Klausen's avatar Kristian Klausen 🎉
Browse files

Update description on Dockerhub on release

Fix #47
parent 648e0259
......@@ -180,6 +180,13 @@ release:
- apk add jq curl
- |
# Update the description on
JSON="$(jq -n --arg user "${DOCKERHUB_USERNAME}" --arg pw "${DOCKERHUB_PASSWORD}" '{"username": $user, "password": $pw}')"
TOKEN="$(curl -sf -H "Content-Type: application/json" --data "${JSON}" "" | jq -er .token)"
JSON="$(jq -n --arg full_description "$(cat" '{"full_description": $full_description}')"
curl -sf -H "Content-Type: application/json" -H "Authorization: JWT ${TOKEN}" --request PATCH --data "${JSON}" ""
# Upload rootfs to the Generic Packages Repository
for group in base base-devel; do
sed -i "s|${group}.tar.xz|${group}-${BUILD_VERSION}.tar.xz|" output/${group}.tar.xz.SHA256
echo "Uploading ${group}.tar.xz"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment