Skip to content

Commit

Permalink
Update push-docker-image.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
amirhnajafiz authored Aug 13, 2023
1 parent 26944e6 commit 196fecc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/push-docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Set output
id: vars
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT

- name: Log in to Docker Hub
uses: docker/login-action@v2
Expand All @@ -33,4 +37,4 @@ jobs:
context: .
file: ./build/Dockerfile
push: true
tags: ${{ env.DOCKER_USER }}/${{ env.REPO_NAME }}:${GITHUB_REF#refs/tags/}
tags: ${{ env.DOCKER_USER }}/${{ env.REPO_NAME }}:${{ steps.vars.outputs.tag }}

0 comments on commit 196fecc

Please sign in to comment.