Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

feat: adjust to only build the latest image when pushing a tag. (#1324)

takatostc0fe706597a2
diff --git a/.github/workflows/build-api-image.yml b/.github/workflows/build-api-image.yml
index cc3964e6e14..1b5bf764ecc 100644
--- a/.github/workflows/build-api-image.yml
+++ b/.github/workflows/build-api-image.yml
@@ -31,7 +31,7 @@ jobs:
with:
images: langgenius/dify-api
tags: |
- type=raw,value=latest,enable={{is_default_branch}}
+ type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }}
type=ref,event=branch
type=sha,enable=true,priority=100,prefix=,suffix=,format=long
type=semver,pattern={{major}}.{{minor}}.{{patch}}
diff --git a/.github/workflows/build-web-image.yml b/.github/workflows/build-web-image.yml
index 51d0e8967ce..32685d50924 100644
--- a/.github/workflows/build-web-image.yml
+++ b/.github/workflows/build-web-image.yml
@@ -31,7 +31,7 @@ jobs:
with:
images: langgenius/dify-web
tags: |
- type=raw,value=latest,enable={{is_default_branch}}
+ type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }}
type=ref,event=branch
type=sha,enable=true,priority=100,prefix=,suffix=,format=long
type=semver,pattern={{major}}.{{minor}}.{{patch}}