Skip to content

Commit 8e691ac

Browse files
committed
changes to ci
1 parent 7172a74 commit 8e691ac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/docker.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ name: Build Docker Image
33
on:
44
push:
55
branches: [main, dev, ci]
6+
tags:
7+
- 'v*'
68

79
env:
810
REGISTRY: ghcr.io
9-
IMAGE_NAME: ${{ github.repository }}/demos
11+
IMAGE_NAME: ${{ github.repository_owner }}/demos
1012

1113
jobs:
1214
publish:
@@ -39,8 +41,8 @@ jobs:
3941
with:
4042
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4143
tags: |
44+
type=sha,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
4245
type=ref,event=branch
43-
type=sha
4446
type=semver,pattern={{version}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
4547
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
4648

0 commit comments

Comments
 (0)