From efb9b5890272160f642e4f4bf190be15d7db356a Mon Sep 17 00:00:00 2001 From: Jiale Liu Date: Wed, 18 Mar 2020 12:08:46 +0800 Subject: [PATCH] Bug fix : repository name must be lowercase https://github.com/Licsber/opencv-docker/runs/514244582?check_suite_focus=true Push image: Error parsing reference: "docker.pkg.github.com/Licsber/opencv-docker/opencv:latest" is not a valid repository/tag: invalid reference format: repository name must be lowercase My username contains uppercase characters, this make push failed. So fix the bug by change all uppercase in IMAGE_ID to lowercase. --- ci/docker-publish.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/docker-publish.yml b/ci/docker-publish.yml index bb193ad..21f5bd1 100644 --- a/ci/docker-publish.yml +++ b/ci/docker-publish.yml @@ -56,6 +56,9 @@ jobs: - name: Push image run: | IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME + + # Change all uppercase to lowercase + IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') # Strip git ref prefix from version VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')