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