diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index b5d1519060e8d..a3d60ea518f1c 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -44,24 +44,27 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Set lowercase image name + run: echo "LOWERCASE_IMAGE_NAME=${{ github.repository }} | tr 'A-Z' 'a-z'" >> $GITHUB_ENV + - name: Extract Docker metadata id: meta uses: docker/metadata-action@v4 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + images: ${{ env.REGISTRY }}/${{ env.LOWERCASE_IMAGE_NAME }} - name: Finalize Docker Metadata id: docker_tagging run: | if [[ "${{ github.event_name }}" == 'schedule' ]]; then echo "cron trigger, assigning nightly tag" - echo "docker_tags=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:nightly,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:nightly-${GITHUB_SHA}" >> $GITHUB_OUTPUT + echo "docker_tags=${{ env.REGISTRY }}/${{ env.LOWERCASE_IMAGE_NAME }}:nightly,${{ env.REGISTRY }}/${{ env.LOWERCASE_IMAGE_NAME }}:nightly-${GITHUB_SHA}" >> $GITHUB_OUTPUT elif [[ "${GITHUB_REF##*/}" == "main" ]] || [[ ${GITHUB_REF##*/} == "master" ]]; then echo "manual trigger from master/main branch, assigning latest tag" - echo "docker_tags=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_REF##*/},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest" >> $GITHUB_OUTPUT + echo "docker_tags=${{ env.REGISTRY }}/${{ env.LOWERCASE_IMAGE_NAME }}:${GITHUB_REF##*/},${{ env.REGISTRY }}/${{ env.LOWERCASE_IMAGE_NAME }}:latest" >> $GITHUB_OUTPUT else echo "Neither scheduled nor manual release from main branch. Just tagging as branch name" - echo "docker_tags=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_REF##*/}" >> $GITHUB_OUTPUT + echo "docker_tags=${{ env.REGISTRY }}/${{ env.LOWERCASE_IMAGE_NAME }}:${GITHUB_REF##*/}" >> $GITHUB_OUTPUT fi - name: Inspect Docker Metadata