Converts repository name to lowercase which is necessary for the build to work with docker container registry.

This commit is contained in:
Christbru 2025-10-18 17:53:58 -05:00
commit fa78ffc1b7

View file

@ -19,6 +19,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
# --- NEW STEP TO FIX THE ERROR ---
- name: Set repo name to lowercase
id: repo_name
run: echo "name=$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
@ -35,7 +40,8 @@ jobs:
with:
context: ./web-app
push: true
tags: ghcr.io/${{ github.repository }}/web-app:${{ github.sha }}
# CHANGED: Uses the new lowercase repo name
tags: ghcr.io/${{ steps.repo_name.outputs.name }}/web-app:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
@ -44,7 +50,8 @@ jobs:
with:
context: ./rust-engine
push: true
tags: ghcr.io/${{ github.repository }}/rust-engine:${{ github.sha }}
# CHANGED: Uses the new lowercase repo name
tags: ghcr.io/${{ steps.repo_name.outputs.name }}/rust-engine:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max