Skip to content

Commit 2aa30d8

Browse files
committed
Just echo the tag
1 parent 98b1718 commit 2aa30d8

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,17 @@ jobs:
1717

1818
- name: Build the image
1919
run: docker build -t mendhak/test-image .
20+
- name: Get the tag name
21+
run: echo "VERSION=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
2022
- name: Log in to Docker Hub
2123
uses: docker/login-action@v1
2224
with:
2325
username: ${{ secrets.DOCKER_HUB_USERNAME }}
2426
password: ${{ secrets.DOCKER_HUB_TOKEN }}
25-
- name: Push to Docker Hub
26-
uses: docker/build-push-action@v2
27-
with:
28-
push: true
29-
tags: mendhak/test-image:$($env:GITHUB_REF -replace "refs/tags/")
27+
- name: echo the tag
28+
run: echo ${{ env.TAG }}
29+
# - 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

Comments
 (0)