From 91a0d3d9e4603b5dc94cfc7d128eebaff11a7011 Mon Sep 17 00:00:00 2001 From: Srijan-SS02 Date: Thu, 23 May 2024 22:18:17 +0530 Subject: [PATCH] Updated release.yml Signed-off-by: Srijan-SS02 --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 569bab2..3f35190 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,6 +26,10 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + + - name: Convert repository name to lowercase + run: echo "REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV + - name: Get release tag name id: vars @@ -37,5 +41,5 @@ jobs: context: . push: true tags: | - ghcr.io/${{ github.repository }}/sarthi:latest - ghcr.io/${{ github.repository }}/sarthi:${{ env.RELEASE_TAG }} + ghcr.io/${{ env.REPOSITORY }}/sarthi:latest + ghcr.io/${{ env.REPOSITORY }}/sarthi:${{ env.RELEASE_TAG }}