Skip to content

Commit 4e75a67

Browse files
epiphanyplxclaude
andauthored
Lowercase the GHCR image name in the build workflow (#2)
\${{ github.repository }} returns the canonical mixed-case 'epiphanyplx/Secret-Lair-Monitor', but Docker tag validation rejects uppercase characters, so 'docker buildx build --tag ghcr.io/epiphanyplx/Secret-Lair-Monitor:latest' fails immediately with "repository name must be lowercase" and the workflow never publishes. Add a step that lowercases the name into IMAGE_NAME_LC before use so the push goes to ghcr.io/epiphanyplx/secret-lair-monitor — matching what docker-compose.yml already references. Co-authored-by: Claude <noreply@anthropic.com>
1 parent cd8d937 commit 4e75a67

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020

21+
- name: Compute lowercase image name
22+
run: echo "IMAGE_NAME_LC=$(echo '${{ env.IMAGE_NAME }}' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV"
23+
2124
- uses: docker/login-action@v3
2225
with:
2326
registry: ${{ env.REGISTRY }}
@@ -29,5 +32,5 @@ jobs:
2932
context: .
3033
push: true
3134
tags: |
32-
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
33-
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
35+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LC }}:latest
36+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LC }}:${{ github.sha }}

0 commit comments

Comments
 (0)