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