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:
parent
abcd1c07c3
commit
d621ba9c07
@ -26,7 +26,7 @@ jobs:
|
||||
password: ${{ secrets.DOCKER_PUSH_TOKEN }}
|
||||
- name: Build Test Publish All
|
||||
run: |
|
||||
SOS_WRITE_TOKEN=${{ secrets.SOS_WRITE_TOKEN }} DOCKER_PUSH_TOKEN=${{ secrets.DOCKER_PUSH_TOKEN }} ./buildtestpublish_all.sh
|
||||
SOS_WRITE_TOKEN=${{ secrets.SOS_WRITE_TOKEN }} RELEASE_WRITE_TOKEN=${{ secrets.RELEASE_WRITE_TOKEN }} ./buildtestpublish_all.sh
|
||||
|
||||
test-install-from-scratch:
|
||||
needs: [build]
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user