aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/publish.yml8
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