Skip to content

Commit 9f60a48

Browse files
committed
test
1 parent 29b961a commit 9f60a48

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/dockerhub-publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,16 @@ jobs:
2828
# username: ${{ secrets.DOCKERHUB_USERNAME }}
2929
# password: ${{ secrets.DOCKERHUB_TOKEN }}
3030
-
31-
name: Compute tags
31+
name: Compute full release version tag
3232
if: env.IS_RELEASE == 'true'
33-
run: echo "TAG_VERSION=$(release='${{github.event.release.tag_name}}' && echo ${release:1})" >> $GITHUB_ENV
33+
run: echo "TAG_FULL_VERSION=$(release='${{github.event.release.tag_name}}' && echo ${release:1})" >> $GITHUB_ENV
34+
-
35+
name: Compute primary release version tag
36+
if: env.IS_RELEASE == 'true'
37+
run: echo "TAG_PRIMARY_VERSION=$(release='${{github.event.release.tag_name}}' && echo ${release:1:1})" >> $GITHUB_ENV
3438
-
3539
name: Print tags
36-
run: echo ${{(env.IS_RELEASE == 'true' && format('gruxer/prism:{0},gruxer/prism:latest', env.TAG_VERSION)) || 'gruxer/prism:master'}}
40+
run: echo ${{(env.IS_RELEASE == 'true' && format('gruxer/prism:{0},gruxer/prism:{1},gruxer/prism:latest', env.TAG_FULL_VERSION, env.TAG_PRIMARY_VERSION)) || 'gruxer/prism:master'}}
3741
# -
3842
# name: Build and Push
3943
# uses: docker/build-push-action@v4

0 commit comments

Comments
 (0)