Compare commits

..

1 commit

Author SHA1 Message Date
65b7f84dbe ci(forgejo): configure act-runner container, registry host, and token fallback
All checks were successful
Build, Push, and Release / build-and-push (push) Successful in 26s
Build, Push, and Release / create-release (push) Successful in 3s
2026-08-18 18:41:44 +02:00

View file

@ -9,7 +9,6 @@ on:
tags:
- 'v*'
# Grant permissions to push packages to Forgejo Container Registry and create releases
permissions:
contents: write
packages: write
@ -29,7 +28,6 @@ jobs:
- name: Extract Registry Host
id: reg
run: |
# Strip protocol scheme (http:// or https://) for Docker registry reference
SERVER_HOST=$(echo "${{ gitea.server_url }}" | sed -e 's|^https\?://||')
echo "host=${SERVER_HOST}" >> "$GITHUB_OUTPUT"
@ -41,7 +39,7 @@ jobs:
with:
registry: ${{ steps.reg.outputs.host }}
username: ${{ gitea.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
- name: Extract Metadata for Docker
id: meta
@ -61,8 +59,7 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
provenance: false
create-release:
needs: build-and-push
@ -89,7 +86,7 @@ jobs:
echo "Creating release ${RELEASE_NAME} with tag ${TAG_NAME}..."
curl -s -X POST "${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/releases" \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Authorization: token ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}" \
-H "Content-Type: application/json" \
-d "{
\"tag_name\": \"${TAG_NAME}\",