fix: derive repo name from git remote to avoid empty context\n\n- Replace github.repository with git remote parsing\n- More reliable in Gitea Actions where context may be missing\n- Produces valid tags like git.danhenry.dev:5050/thelab/sandbox-base-image:<sha>
Some checks failed
Build and Push Sandbox Base Image / build (push) Failing after 24m13s

This commit is contained in:
Marcus A.
2026-04-07 23:50:51 +00:00
parent 2b888712b7
commit 0eaabc3d5d

View File

@@ -26,7 +26,8 @@ jobs:
- name: Set image name (lowercase)
id: meta
run: |
echo "repo=${{ toLower(github.repository) }}" >> $GITHUB_OUTPUT
REPO=$(git config --get remote.origin.url | sed -n 's|.*[:/]\([^/]\+\/[^.]\+\).*|\1|p')
echo "repo=$(echo "$REPO" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3