Skip to content

Commit 575dc9d

Browse files
committed
fix: update GitHub Actions workflow to convert repository owner to lowercase for Docker image name; ensure consistent naming for GitHub Container Registry
1 parent 3925c4e commit 575dc9d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/build-image.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,13 @@ jobs:
111111
id: build
112112
env:
113113
IMAGE_NAME: public.ecr.aws/x7l7e7v1/${{ matrix.name }}
114-
GHCR_IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/${{ matrix.name }}
115114
RELEASE_VERSION: ${{ needs.check-release-version.outputs.release_version }}
116115
HAS_RELEASE: ${{ needs.check-release-version.outputs.has_release }}
117116
run: |
117+
# Convert repository owner to lowercase for Docker image name
118+
REPO_OWNER_LOWER=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')
119+
GHCR_IMAGE_NAME="ghcr.io/${REPO_OWNER_LOWER}/${{ matrix.name }}"
120+
118121
echo "🔧 Building multi-arch image for linux/amd64,linux/arm64"
119122
120123
if [ "$HAS_RELEASE" == "true" ] && [ -n "$RELEASE_VERSION" ]; then

0 commit comments

Comments
 (0)