Modify bb64/publish.sh
Some checks failed
Build-Test-Publish / build (linux/arm64) (push) Failing after 27s
Build-Test-Publish / build (linux/amd64) (push) Failing after 1m34s
Build-Test-Publish / test-install-from-scratch (linux/amd64) (push) Has been skipped
Build-Test-Publish / test-install-from-scratch (linux/arm64) (push) Has been skipped
Some checks failed
Build-Test-Publish / build (linux/arm64) (push) Failing after 27s
Build-Test-Publish / build (linux/amd64) (push) Failing after 1m34s
Build-Test-Publish / test-install-from-scratch (linux/amd64) (push) Has been skipped
Build-Test-Publish / test-install-from-scratch (linux/arm64) (push) Has been skipped
This commit is contained in:
parent
b7f095dc22
commit
7d0f4d034c
@ -37,7 +37,10 @@ docker build \
|
|||||||
--output "${OUTPUT}" \
|
--output "${OUTPUT}" \
|
||||||
"${SCRIPT_DIR}"
|
"${SCRIPT_DIR}"
|
||||||
|
|
||||||
[ -f "${OUTPUT}/${PROJECT}" ] || die "Build failed."
|
if [ ! -f "${OUTPUT}/${PROJECT}" ]; then
|
||||||
|
echo "Build failed." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
cp "${OUTPUT}/${PROJECT}" "${OUTPUT}/${PROJECT}.${ARCH_ALIAS}"
|
cp "${OUTPUT}/${PROJECT}" "${OUTPUT}/${PROJECT}.${ARCH_ALIAS}"
|
||||||
cp "${OUTPUT}/${PROJECT}" "${OUTPUT}/${PROJECT}.${ARCH}"
|
cp "${OUTPUT}/${PROJECT}" "${OUTPUT}/${PROJECT}.${ARCH}"
|
||||||
@ -69,7 +72,10 @@ RELEASE_DATA=$(cat <<EOF
|
|||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
|
|
||||||
[ -n "$DOCKER_PUSH_TOKEN" ] || die "DOCKER_PUSH_TOKEN not set"
|
if [ -z "$DOCKER_PUSH_TOKEN" ]; then
|
||||||
|
echo "DOCKER_PUSH_TOKEN not set" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
RELEASE_ID=$(curl -s -X POST "$API_URL/releases" \
|
RELEASE_ID=$(curl -s -X POST "$API_URL/releases" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
@ -96,7 +102,7 @@ for FILE in ${PROJECT}.${ARCH_ALIAS} ${PROJECT}.${ARCH} install.sh; do
|
|||||||
|
|
||||||
curl -s -X POST "$API_URL/releases/$RELEASE_ID/assets?name=$FILE" \
|
curl -s -X POST "$API_URL/releases/$RELEASE_ID/assets?name=$FILE" \
|
||||||
-H "Content-Type: $ctype" \
|
-H "Content-Type: $ctype" \
|
||||||
-H "Authorization: token $TOKEN" \
|
-H "Authorization: token $DOCKER_PUSH_TOKEN" \
|
||||||
--data-binary @"$filetoupload"
|
--data-binary @"$filetoupload"
|
||||||
echo "Uploaded $FILE to release $TAG as $ctype."
|
echo "Uploaded $FILE to release $TAG as $ctype."
|
||||||
done
|
done
|
||||||
@ -105,7 +111,7 @@ echo "Published bb64 version $v to $REPO_URL (tag $TAG) with binaries for $ARCH_
|
|||||||
|
|
||||||
|
|
||||||
#--------------------------------------------------------------------------------
|
#--------------------------------------------------------------------------------
|
||||||
heading "Publishing ${PROJECT} as tool to getpkg.xyz"
|
echo "Publishing ${PROJECT} as tool to getpkg.xyz"
|
||||||
|
|
||||||
# Create tool directory structure
|
# Create tool directory structure
|
||||||
TOOLDIR="${OUTPUT}/tool"
|
TOOLDIR="${OUTPUT}/tool"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user