瀏覽代碼

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

tags/0.3.27
takatost 2 年之前
父節點
當前提交
c0fe706597
No account linked to committer's email address
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      .github/workflows/build-api-image.yml
  2. 1
    1
      .github/workflows/build-web-image.yml

+ 1
- 1
.github/workflows/build-api-image.yml 查看文件

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}}

+ 1
- 1
.github/workflows/build-web-image.yml 查看文件

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…
取消
儲存