We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c6aa70 commit 8a624a4Copy full SHA for 8a624a4
.github/workflows/create_image.yml
@@ -4,7 +4,6 @@ on:
4
push:
5
tags:
6
- 'v*'
7
- workflow_dispatch:
8
9
jobs:
10
build:
@@ -23,6 +22,9 @@ jobs:
23
22
with:
24
username: ${{ secrets.DOCKERHUB_USERNAME }}
25
password: ${{ secrets.DOCKERHUB_TOKEN }}
+ - name: Get the version
26
+ id: get_version
27
+ run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
28
- name: Build and push
29
uses: docker/build-push-action@v2
30
@@ -34,6 +36,7 @@ jobs:
34
36
push: true
35
37
tags: |
38
deflinhec/gsx2jsonpp:latest
39
+ deflinhec/gsx2jsonpp:${{ steps.get_version.outputs.VERSION }}
40
- name: Inspect image
41
run: |
42
docker buildx imagetools inspect deflinhec/gsx2jsonpp:latest
0 commit comments