Skip to content

Commit 8a624a4

Browse files
committed
Update create_image.yml
1 parent 6c6aa70 commit 8a624a4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/create_image.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
tags:
66
- 'v*'
7-
workflow_dispatch:
87

98
jobs:
109
build:
@@ -23,6 +22,9 @@ jobs:
2322
with:
2423
username: ${{ secrets.DOCKERHUB_USERNAME }}
2524
password: ${{ secrets.DOCKERHUB_TOKEN }}
25+
- name: Get the version
26+
id: get_version
27+
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
2628
- name: Build and push
2729
uses: docker/build-push-action@v2
2830
with:
@@ -34,6 +36,7 @@ jobs:
3436
push: true
3537
tags: |
3638
deflinhec/gsx2jsonpp:latest
39+
deflinhec/gsx2jsonpp:${{ steps.get_version.outputs.VERSION }}
3740
- name: Inspect image
3841
run: |
3942
docker buildx imagetools inspect deflinhec/gsx2jsonpp:latest

0 commit comments

Comments
 (0)