fix: use GITEA_ACTIONS env var for registry detection
Some checks failed
Build and Push Docker Image / build (push) Failing after 19s
Some checks failed
Build and Push Docker Image / build (push) Failing after 19s
The workflow was checking vars.GITEA_ACTIONS (repository variable) but Gitea sets GITEA_ACTIONS as an environment variable. This caused Gitea builds to incorrectly try using ghcr.io.
This commit is contained in:
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@@ -25,7 +25,7 @@ jobs:
|
||||
- name: Determine registry
|
||||
id: registry
|
||||
run: |
|
||||
if [ "${{ vars.GITEA_ACTIONS }}" = "true" ]; then
|
||||
if [ "${GITEA_ACTIONS}" = "true" ]; then
|
||||
# Gitea: use server URL as registry
|
||||
REGISTRY="${{ github.server_url }}"
|
||||
REGISTRY="${REGISTRY#https://}"
|
||||
|
||||
Reference in New Issue
Block a user