Skip to content

Commit c93b253

Browse files
authored
Update image-release.yml
1 parent b34eaa1 commit c93b253

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/image-release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: image-release
22

33
on:
4-
release:
5-
types: [ published ]
4+
push:
5+
tags: [ '*.*.*' ]
66

77
concurrency:
88
group: ${{ github.workflow }}-${{ github.ref }}
@@ -26,9 +26,6 @@ jobs:
2626
- name: Set up Docker Buildx
2727
uses: docker/setup-buildx-action@v2
2828

29-
- name: Get release version
30-
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
31-
3229
# Login against a Docker registry except on PR
3330
# https://github.com/docker/login-action
3431
- name: Log into dockerhub
@@ -55,7 +52,7 @@ jobs:
5552
context: ./
5653
platforms: linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64/v8
5754
push: ${{ github.event_name != 'pull_request' }}
58-
tags: ${{ env.TAG }}
55+
tags: ${{ steps.meta.outputs.tags }}
5956
labels: ${{ steps.meta.outputs.labels }}
6057

6158
singularity:

0 commit comments

Comments
 (0)