Skip to content

Commit 196fecc

Browse files
authored
Update push-docker-image.yaml
1 parent 26944e6 commit 196fecc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: .github/workflows/push-docker-image.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
steps:
1818
- name: Check out the repo
1919
uses: actions/checkout@v3
20+
21+
- name: Set output
22+
id: vars
23+
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
2024

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

0 commit comments

Comments
 (0)