Fix act_runner auth: short-form local actions + full GitHub URLs
Some checks failed
Build Docker Image / build (pull_request) Failing after 2m6s
Some checks failed
Build Docker Image / build (pull_request) Failing after 2m6s
DEFAULT_ACTIONS_URL=self requires local actions use short form (cal/gitea-actions/...) so the runner passes its auth token, and GitHub actions use full URLs (https://github.com/...) to bypass local resolution. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a1af8ea665
commit
cc5e746247
@ -22,27 +22,27 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: https://github.com/actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # Full history for tag counting
|
fetch-depth: 0 # Full history for tag counting
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: https://github.com/docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: https://github.com/docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Generate CalVer version
|
- name: Generate CalVer version
|
||||||
id: calver
|
id: calver
|
||||||
uses: https://git.manticorum.com/cal/gitea-actions/calver@main
|
uses: cal/gitea-actions/calver@main
|
||||||
|
|
||||||
# Dev build: push with dev + dev-SHA tags (PR/feature branches)
|
# Dev build: push with dev + dev-SHA tags (PR/feature branches)
|
||||||
- name: Build Docker image (dev)
|
- name: Build Docker image (dev)
|
||||||
if: github.ref != 'refs/heads/main'
|
if: github.ref != 'refs/heads/main'
|
||||||
uses: docker/build-push-action@v5
|
uses: https://github.com/docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
@ -55,7 +55,7 @@ jobs:
|
|||||||
# Production build: push with latest + CalVer tags (main only)
|
# Production build: push with latest + CalVer tags (main only)
|
||||||
- name: Build Docker image (production)
|
- name: Build Docker image (production)
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
uses: docker/build-push-action@v5
|
uses: https://github.com/docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
@ -68,7 +68,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Tag release
|
- name: Tag release
|
||||||
if: success() && github.ref == 'refs/heads/main'
|
if: success() && github.ref == 'refs/heads/main'
|
||||||
uses: https://git.manticorum.com/cal/gitea-actions/gitea-tag@main
|
uses: cal/gitea-actions/gitea-tag@main
|
||||||
with:
|
with:
|
||||||
version: ${{ steps.calver.outputs.version }}
|
version: ${{ steps.calver.outputs.version }}
|
||||||
token: ${{ github.token }}
|
token: ${{ github.token }}
|
||||||
@ -97,7 +97,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Discord Notification - Success
|
- name: Discord Notification - Success
|
||||||
if: success() && github.ref == 'refs/heads/main'
|
if: success() && github.ref == 'refs/heads/main'
|
||||||
uses: https://git.manticorum.com/cal/gitea-actions/discord-notify@main
|
uses: cal/gitea-actions/discord-notify@main
|
||||||
with:
|
with:
|
||||||
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
|
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
title: "Major Domo Database"
|
title: "Major Domo Database"
|
||||||
@ -109,7 +109,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Discord Notification - Failure
|
- name: Discord Notification - Failure
|
||||||
if: failure() && github.ref == 'refs/heads/main'
|
if: failure() && github.ref == 'refs/heads/main'
|
||||||
uses: https://git.manticorum.com/cal/gitea-actions/discord-notify@main
|
uses: cal/gitea-actions/discord-notify@main
|
||||||
with:
|
with:
|
||||||
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
|
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
title: "Major Domo Database"
|
title: "Major Domo Database"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user