Skip to content

Commit d0d8a23

Browse files
authored
action: update tag for pushing image when release
1 parent 07824a0 commit d0d8a23

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/iso-ci.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ jobs:
5151
run: docker info
5252
- name: buildx inspect
5353
run: docker buildx inspect
54+
55+
- name: get tag without v
56+
id: tag
57+
if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
58+
uses: battila7/get-version-action@v2
5459

5560
# Build and (optionally) push the driver image
5661
- name: build the driver image
@@ -62,4 +67,4 @@ jobs:
6267
# Only push if we are publishing a release
6368
push: ${{ github.event_name == 'release' && github.event.action == 'published' }}
6469
# Use a 'dev' tag, that won't be pushed, for non-release builds
65-
tags: docker.io/ibmcom/ibm-storage-odf-block-driver:${{ github.event.release.tag_name || 'dev' }}
70+
tags: docker.io/ibmcom/ibm-storage-odf-block-driver:${{ steps.tag.outputs.version-without-v || 'dev' }}

0 commit comments

Comments
 (0)