Spaces:
Sleeping
Sleeping
add latest tag?
Browse files
.github/workflows/build-image.yml
CHANGED
|
@@ -27,8 +27,7 @@ jobs:
|
|
| 27 |
images: |
|
| 28 |
ghcr.io/huggingface/chat-ui-db
|
| 29 |
tags: |
|
| 30 |
-
type=
|
| 31 |
-
type=ref,event=pr
|
| 32 |
type=semver,pattern={{version}}
|
| 33 |
type=semver,pattern={{major}}
|
| 34 |
type=semver,pattern={{major}}.{{minor}}
|
|
@@ -47,7 +46,7 @@ jobs:
|
|
| 47 |
username: ${{ github.repository_owner }}
|
| 48 |
password: ${{ secrets.GITHUB_TOKEN }}
|
| 49 |
|
| 50 |
-
- name: Build and Publish Docker Image
|
| 51 |
uses: docker/build-push-action@v5
|
| 52 |
with:
|
| 53 |
context: .
|
|
@@ -70,8 +69,7 @@ jobs:
|
|
| 70 |
images: |
|
| 71 |
ghcr.io/huggingface/chat-ui
|
| 72 |
tags: |
|
| 73 |
-
type=
|
| 74 |
-
type=ref,event=pr
|
| 75 |
type=semver,pattern={{version}}
|
| 76 |
type=semver,pattern={{major}}
|
| 77 |
type=semver,pattern={{major}}.{{minor}}
|
|
@@ -90,7 +88,7 @@ jobs:
|
|
| 90 |
username: ${{ github.repository_owner }}
|
| 91 |
password: ${{ secrets.GITHUB_TOKEN }}
|
| 92 |
|
| 93 |
-
- name: Build and Publish Docker Image
|
| 94 |
uses: docker/build-push-action@v5
|
| 95 |
with:
|
| 96 |
context: .
|
|
|
|
| 27 |
images: |
|
| 28 |
ghcr.io/huggingface/chat-ui-db
|
| 29 |
tags: |
|
| 30 |
+
type=raw,value=latest,enable={{is_default_branch}}
|
|
|
|
| 31 |
type=semver,pattern={{version}}
|
| 32 |
type=semver,pattern={{major}}
|
| 33 |
type=semver,pattern={{major}}.{{minor}}
|
|
|
|
| 46 |
username: ${{ github.repository_owner }}
|
| 47 |
password: ${{ secrets.GITHUB_TOKEN }}
|
| 48 |
|
| 49 |
+
- name: Build and Publish Docker Image with DB
|
| 50 |
uses: docker/build-push-action@v5
|
| 51 |
with:
|
| 52 |
context: .
|
|
|
|
| 69 |
images: |
|
| 70 |
ghcr.io/huggingface/chat-ui
|
| 71 |
tags: |
|
| 72 |
+
type=raw,value=latest,enable={{is_default_branch}}
|
|
|
|
| 73 |
type=semver,pattern={{version}}
|
| 74 |
type=semver,pattern={{major}}
|
| 75 |
type=semver,pattern={{major}}.{{minor}}
|
|
|
|
| 88 |
username: ${{ github.repository_owner }}
|
| 89 |
password: ${{ secrets.GITHUB_TOKEN }}
|
| 90 |
|
| 91 |
+
- name: Build and Publish Docker Image without DB
|
| 92 |
uses: docker/build-push-action@v5
|
| 93 |
with:
|
| 94 |
context: .
|