Skip to content

Commit 0cb1a3d

Browse files
committed
On release
1 parent 5e24a4b commit 0cb1a3d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/docker.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ name: Build and push blaiseio/acelink
22

33
on:
44
push:
5-
tags: ['[0-9].[0-9]+.[0-9]+']
65
branches: [master]
6+
release:
7+
types: [published]
78

89
jobs:
910
docker:
@@ -36,9 +37,9 @@ jobs:
3637
-
3738
name: Build and push
3839
uses: docker/build-push-action@v2
39-
if: ${{ github.ref != 'refs/heads/master' }}
40+
if: ${{ github.event.release.tag_name }}
4041
with:
4142
context: .
4243
platforms: linux/amd64,linux/arm64
4344
push: true
44-
tags: blaiseio/acelink:${{ GITHUB_REF##*/ }}
45+
tags: blaiseio/acelink:${{ github.event.release.tag_name }}

0 commit comments

Comments
 (0)