Commit 24b10ce1 authored by Kristian Klausen's avatar Kristian Klausen 🎉
Browse files

Use httpie for the Dockerhub description update logic

parent ba0b4700
......@@ -177,14 +177,12 @@ release:
- apk update
- apk add jq curl
- apk add jq curl httpie
- |
# 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}" ""
TOKEN="$(https POST username="${DOCKERHUB_USERNAME}" password="${DOCKERHUB_PASSWORD}" | jq -er .token)"
https PATCH Authorization:"JWT ${TOKEN}" full_description="$(cat"
# Upload rootfs to the Generic Packages Repository
for group in base base-devel; do
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