Skip to content

Commit

Permalink
remove old archigator code
Browse files Browse the repository at this point in the history
  • Loading branch information
j-bauer committed May 14, 2024
1 parent e413ccd commit 30b5451
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions misc/datahub-hooks.bash
Original file line number Diff line number Diff line change
Expand Up @@ -51,28 +51,6 @@ arc_registry_push() {
echo "ARC registry push returned: $ret"
}

get_publication_link() {
if [ -z "$archigator_url" ] || [ -z "$archigator_user" ] || [ -z "$archigator_password" ]; then
echo "Archigator publication microservice not configured. Skipping..."
return
fi
basic_auth="$( \
echo -n "${archigator_user}:${archigator_password}" | base64
)"
ret="$(curl -k -L -X POST \
-H 'Content-Type: application/json' \
-H "Authorization: Basic ${basic_auth}" \
-d '{"project_id": '$project_id'}' \
"${archigator_url}/api/v1/setup/generatelink"
)"
link_url="$(jq -r '.link // empty' <<< "$ret")"
if [ -z "$link_url" ]; then
echo "Could not retrieve publication link from archigator."
return
fi
echo "$link_url"
}

purge_badges() {
ret="$(curl -k -L -X GET \
-H "PRIVATE-TOKEN: $api_token" \
Expand Down

0 comments on commit 30b5451

Please sign in to comment.