Skip to content

Fix build-docker GHCR tag generation for mixed-case repository names#16

Merged
rwilliamspbg-ops merged 3 commits into
mainfrom
copilot/fix-build-docker-job
Jul 9, 2026
Merged

Fix build-docker GHCR tag generation for mixed-case repository names#16
rwilliamspbg-ops merged 3 commits into
mainfrom
copilot/fix-build-docker-job

Conversation

Copilot AI commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

build-docker in CI/CD failed because image tags were derived from ${{ github.repository }}, which preserves case (Mohawk-Inference-Engine) and produces invalid GHCR tag paths. This PR normalizes repository casing once and reuses the normalized value for all Docker publish tags.

  • Root cause addressed

    • GHCR/Docker requires lowercase repository components in image tags.
    • Existing tags used ${{ github.repository }} directly, causing invalid tag ... repository name must be lowercase.
  • Workflow change

    • Added a normalization step in build-docker:
      • computes IMAGE_REPO=ghcr.io/${GITHUB_REPOSITORY,,}
      • exports it via $GITHUB_ENV
    • Replaced hardcoded tag prefixes in both CPU and CUDA image builds with ${{ env.IMAGE_REPO }}.
  • Impact

    • Keeps tag construction dynamic across owner/repo changes.
    • Ensures both mohawk-server and mohawk-server-cuda publish paths remain GHCR-compliant.
- name: Normalize image repository path
  run: echo "IMAGE_REPO=ghcr.io/${GITHUB_REPOSITORY,,}" >> "$GITHUB_ENV"

# ...
tags: |
  ${{ env.IMAGE_REPO }}/mohawk-server:latest
  ${{ env.IMAGE_REPO }}/mohawk-server:${{ github.sha }}

Copilot AI changed the title [WIP] Fix failing GitHub Actions job 'build-docker' Fix build-docker GHCR tag generation for mixed-case repository names Jul 9, 2026
Copilot AI requested a review from rwilliamspbg-ops July 9, 2026 21:56
@rwilliamspbg-ops rwilliamspbg-ops marked this pull request as ready for review July 9, 2026 21:57
@rwilliamspbg-ops rwilliamspbg-ops merged commit bdfedd2 into main Jul 9, 2026
3 checks passed
@rwilliamspbg-ops rwilliamspbg-ops deleted the copilot/fix-build-docker-job branch July 9, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants