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
Some checks failed
Build and Push Sandbox Base Image / build (push) Failing after 24m13s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user