From 351973f3d22fa58a890316147f4db062ccbdc8b1 Mon Sep 17 00:00:00 2001 From: Trumeet <17158086+Trumeet@users.noreply.github.com> Date: Thu, 7 Jan 2021 21:52:21 -0800 Subject: ci: fix Docker image tag uppercase --- .github/workflows/publish.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1358287..d977d6c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,6 +18,12 @@ jobs: - uses: actions/checkout@v2 - name: Generate tag run: echo "CUSTOM_DOCKER_TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV + - name: Convert repo name to lower case + run: | + IMG=$(echo $DOCKER_IMAGE_ORIG | awk '{print tolower($0)}') + echo "CUSTOM_DOCKER_IMAGE=${IMG}" >> $GITHUB_ENV + env: + DOCKER_IMAGE_ORIG: ${{ github.repository }} - name: Login to GitHub Container Registry uses: docker/login-action@v1 with: @@ -27,7 +33,7 @@ jobs: - name: Build and push central Docker image uses: docker/build-push-action@v2.2.1 with: - tags: ghcr.io/Trumeet/dn42peering:${{ env.CUSTOM_DOCKER_TAG }} + tags: ghcr.io/${{ env.CUSTOM_DOCKER_IMAGE }}:${{ env.CUSTOM_DOCKER_TAG }} push: true build_agent: runs-on: ubuntu-latest -- cgit v1.2.3