refactor(deploy,update): drop standalone edition and add sandbox upgrade confirmation

- Remove standalone Docker edition (Dockerfile.standalone, docker-compose.standalone.yml, release.yml standalone jobs, and dual-edition env/script branches).
- Remove deploy_edition field from /api/update/check and dual-edition UI/i18n branching in UpdateCard.
- Replace window.confirm on upgrade with AlertDialog informing users of the irreversible Standalone -> Sandbox security upgrade.
This commit is contained in:
ji ruo committed 2026-12-04 15:14:06 +08:00
1 parent 8efd26b8b7
commit f5b446e3bf
15 files changed
+330 -944

No files matched your search

+6 -45
View File
@@ -257,7 +257,7 @@ jobs:
jq -e --arg version "${RELEASE_TAG#v}" '.version == $version' /tmp/artex-version.json
curl --fail http://127.0.0.1:8787/ > /tmp/artex-index.html
grep -qi '<!doctype html' /tmp/artex-index.html
- name: Push tested control-plane architecture image (sandbox edition)
- name: Push tested control-plane architecture image
uses: docker/build-push-action@v6
with:
context: .
@@ -271,38 +271,6 @@ jobs:
org.opencontainers.image.revision=${{ needs.prepare.outputs.commit }}
org.opencontainers.image.licenses=AGPL-3.0
cache-from: type=gha,scope=docker-${{ matrix.arch }}
- name: Build standalone all-in-one image for native smoke test
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.standalone
platforms: linux/${{ matrix.arch }}
load: true
tags: artex-standalone:smoke
cache-from: type=gha,scope=docker-standalone-${{ matrix.arch }}
cache-to: type=gha,mode=max,scope=docker-standalone-${{ matrix.arch }}
- name: Smoke test standalone image tools and startup
run: |
docker run --rm --entrypoint sh artex-standalone:smoke -c '
/app/artex -h >/dev/null
python3 --version
nmap --version | head -n 1
playwright-mcp --version
'
- name: Push tested standalone architecture image
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.standalone
platforms: linux/${{ matrix.arch }}
push: true
tags: ${{ vars.ARTEX_DOCKER_IMAGE }}:${{ needs.prepare.outputs.tag }}-standalone-${{ matrix.arch }}
labels: |
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.version=${{ needs.prepare.outputs.tag }}
org.opencontainers.image.revision=${{ needs.prepare.outputs.commit }}
org.opencontainers.image.licenses=AGPL-3.0
cache-from: type=gha,scope=docker-standalone-${{ matrix.arch }}
- name: Build and push transparent gateway architecture image
uses: docker/build-push-action@v6
with:
@@ -334,7 +302,7 @@ jobs:
cache-from: type=gha,scope=docker-sandbox-${{ matrix.arch }}
cache-to: type=gha,mode=max,scope=docker-sandbox-${{ matrix.arch }}
# ⑤ 只有两种架构都通过启动验证,才发布双形态(沙箱隔离版 + 单容器版)多架构镜像。
# ⑤ 只有两种架构都通过启动验证,才发布多架构镜像(控制面 + 透明网关 + 沙箱执行环境)。
docker-publish:
needs: [prepare, docker]
runs-on: ubuntu-24.04
@@ -344,31 +312,24 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Publish multi-platform images (sandbox + standalone + gateway + sandbox-worker)
- name: Publish multi-platform images (control-plane + gateway + sandbox-worker)
env:
IMAGE: ${{ vars.ARTEX_DOCKER_IMAGE }}
RELEASE_TAG: ${{ needs.prepare.outputs.tag }}
run: |
# 1. Control-plane slim image (sandbox edition)
# 1. Control-plane slim image
docker buildx imagetools create \
--tag "$IMAGE:$RELEASE_TAG" --tag "$IMAGE:latest" \
"$IMAGE:$RELEASE_TAG-amd64" "$IMAGE:$RELEASE_TAG-arm64"
docker buildx imagetools inspect "$IMAGE:$RELEASE_TAG" --raw > /tmp/artex-manifest.json
jq -e '[.manifests[].platform | select(.os == "linux") | .architecture] | index("amd64") != null and index("arm64") != null' /tmp/artex-manifest.json
# 2. All-in-one standalone image (legacy single-container edition)
docker buildx imagetools create \
--tag "$IMAGE:$RELEASE_TAG-standalone" --tag "$IMAGE:standalone" \
"$IMAGE:$RELEASE_TAG-standalone-amd64" "$IMAGE:$RELEASE_TAG-standalone-arm64"
docker buildx imagetools inspect "$IMAGE:$RELEASE_TAG-standalone" --raw > /tmp/artex-standalone-manifest.json
jq -e '[.manifests[].platform | select(.os == "linux") | .architecture] | index("amd64") != null and index("arm64") != null' /tmp/artex-standalone-manifest.json
# 3. Transparent gateway image
# 2. Transparent gateway image
docker buildx imagetools create \
--tag "$IMAGE-gateway:$RELEASE_TAG" --tag "$IMAGE-gateway:latest" \
"$IMAGE-gateway:$RELEASE_TAG-amd64" "$IMAGE-gateway:$RELEASE_TAG-arm64"
# 4. Sandbox worker image
# 3. Sandbox worker image
docker buildx imagetools create \
--tag "$IMAGE-sandbox:$RELEASE_TAG" --tag "$IMAGE-sandbox:latest" \
"$IMAGE-sandbox:$RELEASE_TAG-amd64" "$IMAGE-sandbox:$RELEASE_TAG-arm64"