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:
parent
a2f8eed254
commit
9888dab444
|
|
@ -20,7 +20,7 @@ jobs:
|
|||
|
||||
- name: Build and Push Docker Image
|
||||
env:
|
||||
IMAGE_NAME: ${{ format('ghcr.io/{0}', github.repository) }}
|
||||
IMAGE_NAME: ${{ format('ghcr.io/{0}', toLower(github.repository)) }}
|
||||
run: |
|
||||
docker build . --tag "${IMAGE_NAME}:${{ github.ref_name }}"
|
||||
docker push "${IMAGE_NAME}:${{ github.ref_name }}"
|
||||
|
|
|
|||
Loading…
Reference in New Issue