An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:wrench: only build docker image on version tags, not on master push
Daniel71785242efbd
diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.ymlindex 5cbf0d8103..43c0e11668 100644--- a/.github/workflows/dockerimage.yml+++ b/.github/workflows/dockerimage.yml@@ -2,12 +2,8 @@ name: Release Docker Imageon:push:- branches:- - mastertags:- - '*-alpha*'- - '*-beta*'- - '*-rc*'+ - 'v*'# ref https://docs.github.com/zh/actions/learn-github-actions/variablesenv:@@ -67,7 +63,8 @@ jobs:- name: Build and push Docker imagerun: |LATEST_FLAG=""- if [ "${{ github.ref }}" = "refs/heads/master" ]; then+ # 仅 stable 版本(tag 不含 alpha/beta/rc)才打 :latest 标签+ if [[ "${{ github.ref }}" != *-alpha* && "${{ github.ref }}" != *-beta* && "${{ github.ref }}" != *-rc* ]]; thenLATEST_FLAG="-t ${{ env.docker_hub_owner }}/${{ env.docker_hub_repo }}:latest"fidocker buildx build --push --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v8 $LATEST_FLAG -t ${{ env.docker_hub_owner }}/${{ env.docker_hub_repo }}:v${{ steps.version.outputs.value }} .