Skip to content

Commit

Permalink
Use new API endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Dec 30, 2024
1 parent 94f04fe commit 1cb7add
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ fi
if [ -z "$MAINTAINERINFO" ]; then
echo "Missing MAINTAINERINFO"; exit 1
fi
if [ -z "$UNIVERSE_NAME" ]; then
echo "Missing UNIVERSE_NAME"; exit 1
fi

# What are we deploying
case "${TARGET}" in
Expand Down Expand Up @@ -40,6 +43,8 @@ case "${TARGET}" in
;;
esac

SERVERURL="https://${UNIVERSE_NAME}.r-universe.dev/api/packages/${PACKAGE}/${VERSION}/${PKGTYPE}"

#FORCE_SERVER_IP="--resolve *:443:68.183.102.165"

if [ "$PKGTYPE" == "failure" ]; then
Expand All @@ -53,7 +58,7 @@ if [ "$PKGTYPE" == "failure" ]; then
-d "Builder-Distro=${DISTRO}" \
-d "Builder-Host=GitHub-Actions" \
-d "Builder-Buildurl=https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" \
"${CRANLIKEURL}/${PACKAGE}/${VERSION}/${PKGTYPE}"
"${SERVERURL}"
exit 0;
fi

Expand Down Expand Up @@ -129,7 +134,7 @@ upload_package_file(){
-H "Builder-Windevel: ${WINDOWS_DEVEL_STATUS}" \
-H "Builder-Buildurl: https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" \
-H 'Expect:' \
"${CRANLIKEURL}/${PACKAGE}/${VERSION}/${PKGTYPE}/${SHASUM}" &&\
"${SERVERURL}/${SHASUM}" &&\
echo " === Complete! === " &&\
exit 0
}
Expand Down

0 comments on commit 1cb7add

Please sign in to comment.