From da5b432bf95474ec659a944079d83cbbfae03feb Mon Sep 17 00:00:00 2001 From: Saikrishna Bairamoni <84093461+SaikrishnaBairamoni@users.noreply.github.com> Date: Wed, 12 Jun 2024 12:09:17 -0400 Subject: [PATCH 1/2] Update dockerhub.yml --- .github/workflows/dockerhub.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml index 81f0790f..c6e8c109 100644 --- a/.github/workflows/dockerhub.yml +++ b/.github/workflows/dockerhub.yml @@ -18,9 +18,14 @@ jobs: uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Replcae Docker tag + id: set_tag + run: echo "TAG=$(echo ${GITHUB_REF##*/} | sed 's/\//-/g')" >> $GITHUB_ENV + - name: Build uses: docker/build-push-action@v5 with: push: true - tags: usdotjpoode/jpo-cvdp:${{ github.ref_name }} + tags: usdotjpoode/jpo-cvdp:${{ env.TAG }} From aad819bffeca610905891cad95e343187910fe6f Mon Sep 17 00:00:00 2001 From: dmccoystephenson Date: Thu, 20 Jun 2024 11:03:41 -0600 Subject: [PATCH 2/2] Corrected typo in `dockerhub.yml` --- .github/workflows/dockerhub.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml index c6e8c109..21f9b2fb 100644 --- a/.github/workflows/dockerhub.yml +++ b/.github/workflows/dockerhub.yml @@ -20,7 +20,7 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Replcae Docker tag + - name: Replace Docker tag id: set_tag run: echo "TAG=$(echo ${GITHUB_REF##*/} | sed 's/\//-/g')" >> $GITHUB_ENV