chore(.github/workflows): Lowercase image name in GHCR

Converts the GitHub repository name to lowercase when constructing the `IMAGE_NAME` for pushing to GitHub Container Registry. This ensures consistency and avoids potential issues with case-sensitive image names.
This commit is contained in:
mmmohebi 2025-11-18 12:45:38 +03:30
parent a2f8eed254
commit 9888dab444
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ jobs:
- name: Build and Push Docker Image - name: Build and Push Docker Image
env: env:
IMAGE_NAME: ${{ format('ghcr.io/{0}', github.repository) }} IMAGE_NAME: ${{ format('ghcr.io/{0}', toLower(github.repository)) }}
run: | run: |
docker build . --tag "${IMAGE_NAME}:${{ github.ref_name }}" docker build . --tag "${IMAGE_NAME}:${{ github.ref_name }}"
docker push "${IMAGE_NAME}:${{ github.ref_name }}" docker push "${IMAGE_NAME}:${{ github.ref_name }}"