config: Update 2 files
Some checks failed
Build-Test-Publish / build (linux/amd64) (push) Failing after 24s
Build-Test-Publish / build (linux/arm64) (push) Failing after 26s
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:
Your Name 2025-06-25 21:27:37 +12:00
parent f0f03f1de6
commit b7f095dc22
2 changed files with 4 additions and 12 deletions

View File

@ -26,7 +26,7 @@ jobs:
password: ${{ secrets.DOCKER_PUSH_TOKEN }} password: ${{ secrets.DOCKER_PUSH_TOKEN }}
- name: Build Test Publish All - name: Build Test Publish All
run: | run: |
SOS_WRITE_TOKEN=${{ secrets.SOS_WRITE_TOKEN }} ./buildtestpublish_all.sh SOS_WRITE_TOKEN=${{ secrets.SOS_WRITE_TOKEN }} DOCKER_PUSH_TOKEN=${{ secrets.DOCKER_PUSH_TOKEN }} ./buildtestpublish_all.sh
test-install-from-scratch: test-install-from-scratch:
needs: [build] needs: [build]

View File

@ -56,16 +56,6 @@ REPO=$(echo "$REPO_URL" | sed -E 's#.*/([^/]+)(\.git)?$#\1#')
API_URL="$BASE_URL/api/v1/repos/$OWNER/$REPO" API_URL="$BASE_URL/api/v1/repos/$OWNER/$REPO"
# Check for DOCKER_PUSH_TOKEN or GITEA_TOKEN
if [ -n "$DOCKER_PUSH_TOKEN" ]; then
TOKEN="$DOCKER_PUSH_TOKEN"
elif [ -n "$GITEA_TOKEN" ]; then
TOKEN="$GITEA_TOKEN"
else
echo "DOCKER_PUSH_TOKEN or GITEA_TOKEN environment variable not set!" >&2
exit 1
fi
# Create release # Create release
RELEASE_DATA=$(cat <<EOF RELEASE_DATA=$(cat <<EOF
{ {
@ -79,9 +69,11 @@ RELEASE_DATA=$(cat <<EOF
EOF EOF
) )
[ -n "$DOCKER_PUSH_TOKEN" ] || die "DOCKER_PUSH_TOKEN not set"
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" \
-H "Authorization: token $TOKEN" \ -H "Authorization: token $DOCKER_PUSH_TOKEN" \
-d "$RELEASE_DATA" | grep -o '"id":[0-9]*' | head -1 | cut -d: -f2) -d "$RELEASE_DATA" | grep -o '"id":[0-9]*' | head -1 | cut -d: -f2)
if [ -z "$RELEASE_ID" ]; then if [ -z "$RELEASE_ID" ]; then