diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1132309..9dde08b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,11 +36,16 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Lowercase repository name + id: lowercase + run: | + echo "repo=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_OUTPUT + - name: Extract metadata (tags, labels) id: meta uses: docker/metadata-action@v5 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + images: ${{ env.REGISTRY }}/${{ steps.lowercase.outputs.repo }} tags: | type=ref,event=branch type=ref,event=pr diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7866c44..30a34d5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -52,7 +52,9 @@ jobs: TAG="main-$(echo ${{ github.sha }} | cut -c1-7)" fi - FULL_IMAGE="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${TAG}" + # Convert repository name to lowercase for Docker + REPO_LOWER=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]') + FULL_IMAGE="${{ env.REGISTRY }}/${REPO_LOWER}:${TAG}" echo "tag=${TAG}" >> $GITHUB_OUTPUT echo "full_image=${FULL_IMAGE}" >> $GITHUB_OUTPUT echo "🐳 Deploying image: ${FULL_IMAGE}"