mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
feat: adjust to only build the latest image when pushing a tag. (#1324)
This commit is contained in:
parent
9cba1c8bf4
commit
c0fe706597
2
.github/workflows/build-api-image.yml
vendored
2
.github/workflows/build-api-image.yml
vendored
|
@ -31,7 +31,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
images: langgenius/dify-api
|
images: langgenius/dify-api
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=latest,enable={{is_default_branch}}
|
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }}
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=sha,enable=true,priority=100,prefix=,suffix=,format=long
|
type=sha,enable=true,priority=100,prefix=,suffix=,format=long
|
||||||
type=semver,pattern={{major}}.{{minor}}.{{patch}}
|
type=semver,pattern={{major}}.{{minor}}.{{patch}}
|
||||||
|
|
2
.github/workflows/build-web-image.yml
vendored
2
.github/workflows/build-web-image.yml
vendored
|
@ -31,7 +31,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
images: langgenius/dify-web
|
images: langgenius/dify-web
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=latest,enable={{is_default_branch}}
|
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }}
|
||||||
type=ref,event=branch
|
type=ref,event=branch
|
||||||
type=sha,enable=true,priority=100,prefix=,suffix=,format=long
|
type=sha,enable=true,priority=100,prefix=,suffix=,format=long
|
||||||
type=semver,pattern={{major}}.{{minor}}.{{patch}}
|
type=semver,pattern={{major}}.{{minor}}.{{patch}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user