FIX(docker): fix Docker image name to lowercase

- Convert image name to lowercase
- Fix registry compatibility
This commit is contained in:
2025-11-23 00:36:45 +09:00
parent bbafbfb6c5
commit b60c38eac0
2 changed files with 9 additions and 2 deletions

View File

@@ -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

View File

@@ -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}"