From 04cb774821d4a4ef6bb1b5fe0f80bd5bc4e38f3e Mon Sep 17 00:00:00 2001 From: Alexander Adam Date: Wed, 3 Dec 2025 02:17:52 +0100 Subject: [PATCH] set image name to lowercase refs #29 - https://github.com/orgs/community/discussions/25768 - https://stackoverflow.com/questions/48522615/docker-error-invalid-reference-format-repository-name-must-be-lowercase - https://github.com/orgs/community/discussions/27086 - https://github.com/docker/build-push-action/issues/37 --- .github/workflows/build-images.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-images.yaml b/.github/workflows/build-images.yaml index 9d513f220..a074d6623 100644 --- a/.github/workflows/build-images.yaml +++ b/.github/workflows/build-images.yaml @@ -26,6 +26,9 @@ jobs: - name: Checkout the codebase uses: actions/checkout@v4 + - name: Set image name to lowercase + run: echo "IMAGE_BASE=ghcr.io/${GITHUB_REPOSITORY_OWNER,,}/worklenz" >> $GITHUB_ENV + - name: Login to the Container registry uses: docker/login-action@v3 with: @@ -37,7 +40,7 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: ghcr.io/${{ github.repository_owner }}/${{ matrix.service.container_name }} + images: ${{ env.IMAGE_BASE }}-${{ matrix.service.name }} flavor: | latest=true