diff options
author | Trumeet <17158086+Trumeet@users.noreply.github.com> | 2021-01-07 21:52:21 -0800 |
---|---|---|
committer | Trumeet <17158086+Trumeet@users.noreply.github.com> | 2021-01-07 21:52:21 -0800 |
commit | 351973f3d22fa58a890316147f4db062ccbdc8b1 (patch) | |
tree | c05c952105d4fb81aea43787946b212354ac62d3 | |
parent | 2a266072ca5d60ad4ba8cf4e8ce82b5cdec3e3ef (diff) | |
download | dn42peering-351973f3d22fa58a890316147f4db062ccbdc8b1.tar dn42peering-351973f3d22fa58a890316147f4db062ccbdc8b1.tar.gz dn42peering-351973f3d22fa58a890316147f4db062ccbdc8b1.tar.bz2 dn42peering-351973f3d22fa58a890316147f4db062ccbdc8b1.zip |
ci: fix Docker image tag uppercase
-rw-r--r-- | .github/workflows/publish.yml | 8 |
1 files changed, 7 insertions, 1 deletions
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 |