Skip to content

Commit

Permalink
ci(Master): iMPLEMENTING THE VERSION Tag in pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
gabszs committed Sep 12, 2024
1 parent bf0b92c commit 3127c5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ jobs:
- name: docker echo command
run: echo "command - ${{ env.IMAGE_NAME }}:latest $IMAGE_NAME:${IMAGE_TAG_LTS} -- command - ${{ env.IMAGE_NAME }}:latest $IMAGE_NAME:${IMAGE_TAG_NEW}"


- name: Tag and Push Docker Image to Docker Hub
env:
IMAGE_HUB_NAME: "${{ secrets.DOCKER_HUB_USERNAME }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}"
IMAGE_BUILD_NAME: ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
IMAGE_TAG_NEW: ${{ steps.set-new-tag.outputs.new_tag }}
# IMAGE_TAG_NEW: ${{ steps.set-new-tag.outputs.new_tag }}
run: |
docker tag ${{ env.IMAGE_BUILD_NAME }} ${{ env.IMAGE_HUB_NAME }}
docker tag $IMAGE_NAME "${{ env.DOCKER_HUB_USERNAME }}/${{ env.IMAGE_NAME }}:${{ steps.set-new_tag.outputs.new_tag }}"
docker push ${{ env.IMAGE_HUB_NAME }}
Update-Image-Tag-in-Deployment:
Expand Down

0 comments on commit 3127c5c

Please sign in to comment.