Skip to content

Commit 36003b8

Browse files
committed
fix: Build image workflow
1 parent 1b78031 commit 36003b8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/build-image.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Publish container image
22

33
on:
44
workflow_dispatch:
5+
push:
6+
paths:
7+
- .github/workflows/build-image.yaml
8+
- Dockerfile*
59
release:
610
types:
711
- created
@@ -51,9 +55,9 @@ jobs:
5155
type=ref,event=branch
5256
type=ref,event=pr
5357
type=sha
54-
type=raw,value=latest,enable={{is_default_branch}}
55-
type=raw,value={{github.ref_name}},enable={{github.ref_type == 'tag'}}
56-
type=raw,value=nightly,enable={{github.event_name == 'schedule'}}
58+
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
59+
type=raw,value=${{ github.ref_name }},enable=${{ github.ref_type == 'tag' }}
60+
type=raw,value=nightly,enable=${{ github.event_name == 'schedule' }}
5761
5862
- name: Build and Push release
5963
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0

0 commit comments

Comments
 (0)