We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98b1718 commit 2aa30d8Copy full SHA for 2aa30d8
1 file changed
.github/workflows/publish.yml
@@ -17,13 +17,17 @@ jobs:
17
18
- name: Build the image
19
run: docker build -t mendhak/test-image .
20
+ - name: Get the tag name
21
+ run: echo "VERSION=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
22
- name: Log in to Docker Hub
23
uses: docker/login-action@v1
24
with:
25
username: ${{ secrets.DOCKER_HUB_USERNAME }}
26
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- - name: Push to Docker Hub
- uses: docker/build-push-action@v2
27
- with:
28
- push: true
29
- tags: mendhak/test-image:$($env:GITHUB_REF -replace "refs/tags/")
+ - name: echo the tag
+ run: echo ${{ env.TAG }}
+ # - name: Push to Docker Hub
30
+ # uses: docker/build-push-action@v2
31
+ # with:
32
+ # push: true
33
+ # tags: mendhak/test-image:${{ env.TAG }}
0 commit comments