From fa78ffc1b70033c0f42f99d6a9a0753ce2b40d8a Mon Sep 17 00:00:00 2001 From: Christbru Date: Sat, 18 Oct 2025 17:53:58 -0500 Subject: [PATCH] Converts repository name to lowercase which is necessary for the build to work with docker container registry. --- .github/workflows/build-and-deploy.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 7250e10..14db905 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -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