Skip to content

Commit 05f7aac

Browse files
committed
add latest tag?
1 parent 73b316c commit 05f7aac

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/build-image.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ jobs:
2727
images: |
2828
ghcr.io/huggingface/chat-ui-db
2929
tags: |
30-
type=ref,event=branch
31-
type=ref,event=pr
30+
type=raw,value=latest,enable={{is_default_branch}}
3231
type=semver,pattern={{version}}
3332
type=semver,pattern={{major}}
3433
type=semver,pattern={{major}}.{{minor}}
@@ -47,7 +46,7 @@ jobs:
4746
username: ${{ github.repository_owner }}
4847
password: ${{ secrets.GITHUB_TOKEN }}
4948

50-
- name: Build and Publish Docker Image
49+
- name: Build and Publish Docker Image with DB
5150
uses: docker/build-push-action@v5
5251
with:
5352
context: .
@@ -70,8 +69,7 @@ jobs:
7069
images: |
7170
ghcr.io/huggingface/chat-ui
7271
tags: |
73-
type=ref,event=branch
74-
type=ref,event=pr
72+
type=raw,value=latest,enable={{is_default_branch}}
7573
type=semver,pattern={{version}}
7674
type=semver,pattern={{major}}
7775
type=semver,pattern={{major}}.{{minor}}
@@ -90,7 +88,7 @@ jobs:
9088
username: ${{ github.repository_owner }}
9189
password: ${{ secrets.GITHUB_TOKEN }}
9290

93-
- name: Build and Publish Docker Image
91+
- name: Build and Publish Docker Image without DB
9492
uses: docker/build-push-action@v5
9593
with:
9694
context: .

0 commit comments

Comments
 (0)