Skip to content

Commit df5917e

Browse files
committed
fix(docker build): change trigger
1 parent 2311cc7 commit df5917e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/build-docker-image.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: Build and Push Docker Image
2-
32
on:
4-
push:
5-
tags:
6-
- '**'
3+
release:
4+
types: [published]
75

86
jobs:
97
build-and-push:
@@ -26,7 +24,7 @@ jobs:
2624

2725
- name: Extract version from tag
2826
id: version
29-
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
27+
run: echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
3028

3129
- name: Convert repository name to lowercase
3230
id: repo

0 commit comments

Comments
 (0)