config: Update 2 files
Some checks failed
Build-Test-Publish / build (linux/amd64) (push) Failing after 29s
Build-Test-Publish / build (linux/arm64) (push) Failing after 28s
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/amd64) (push) Failing after 29s
Build-Test-Publish / build (linux/arm64) (push) Failing after 28s
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:
@ -72,15 +72,15 @@ RELEASE_DATA=$(cat <<EOF
|
||||
EOF
|
||||
)
|
||||
|
||||
if [ -z "$DOCKER_PUSH_TOKEN" ]; then
|
||||
echo "DOCKER_PUSH_TOKEN not set" >&2
|
||||
if [ -z "$RELEASE_WRITE_TOKEN" ]; then
|
||||
echo "RELEASE_WRITE_TOKEN not set" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Creating release $TAG on Gitea..."
|
||||
RELEASE_RESPONSE=$(curl -s -X POST "$API_URL/releases" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: token $DOCKER_PUSH_TOKEN" \
|
||||
-H "Authorization: token $RELEASE_WRITE_TOKEN" \
|
||||
-d "$RELEASE_DATA")
|
||||
|
||||
echo "Release API response: $RELEASE_RESPONSE"
|
||||
@ -114,7 +114,7 @@ for FILE in ${PROJECT}.${ARCH_ALIAS} ${PROJECT}.${ARCH} install.sh; do
|
||||
|
||||
UPLOAD_RESPONSE=$(curl -s -X POST "$API_URL/releases/$RELEASE_ID/assets?name=$FILE" \
|
||||
-H "Content-Type: $ctype" \
|
||||
-H "Authorization: token $DOCKER_PUSH_TOKEN" \
|
||||
-H "Authorization: token $RELEASE_WRITE_TOKEN" \
|
||||
--data-binary @"$filetoupload")
|
||||
|
||||
if echo "$UPLOAD_RESPONSE" | grep -q '"id"'; then
|
||||
|
Reference in New Issue
Block a user