From 1058801264cfe885ddbf3300d2dc1c0b8a26cccd Mon Sep 17 00:00:00 2001 From: XiaoXia Bot Date: Wed, 15 Jul 2026 12:21:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E4=BF=AE=E5=A4=8DProduction?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E6=AE=8B=E7=95=99=E7=9A=84=E6=97=A7=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E8=A1=8C=20-=20YAML=E8=A7=A3=E6=9E=90=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci-cd.yml | 50 -------------------------------------- 1 file changed, 50 deletions(-) diff --git a/.gitea/workflows/ci-cd.yml b/.gitea/workflows/ci-cd.yml index a6e19f427..e615e5fbe 100755 --- a/.gitea/workflows/ci-cd.yml +++ b/.gitea/workflows/ci-cd.yml @@ -823,22 +823,6 @@ jobs: - name: Build and push API image (buildx cache) shell: sh run: "set -eu\nREGISTRY=\"git.xiaoxiajianji.com/xiaoxia/xiaoxia-saas\"\nIMAGE_TAG=\"${REGISTRY}/xiaoxia-saas-api:${GITHUB_SHA}\"\nCACHE_REF=\"${REGISTRY}/api-cache:${GITHUB_REF_NAME}\"\n\nbash scripts/ci/docker_build_push.sh \\\n infra/docker/api.Dockerfile \\\n \"${IMAGE_TAG}\" \\\n \"${CACHE_REF}\" \\\n APP_VERSION=\"${GITHUB_SHA}\"\n\necho\necho \"API image pushed: ${IMAGE_TAG}\"" - - REGISTRY="git.xiaoxiajianji.com/xiaoxia/xiaoxia-saas" - - IMAGE_NAME="xiaoxia-saas-api" - - VERSION="${GITHUB_REF_NAME}" - - CACHE_REF="${REGISTRY}/api-cache:main" - - - echo "Building Production API image: ${VERSION}" - - docker buildx build --build-arg APP_VERSION="${VERSION}" --cache-from "type=registry,ref=${CACHE_REF},ignore-error=true" --cache-to "type=registry,ref=${CACHE_REF},mode=max" -f infra/docker/api.Dockerfile -t "${REGISTRY}/${IMAGE_NAME}:${VERSION}" --push . - - echo "Production API image pushed: ${REGISTRY}/${IMAGE_NAME}:${VERSION}" - ' - name: Job duration summary if: always() @@ -898,22 +882,6 @@ jobs: - name: Build and push Worker image (buildx cache) shell: sh run: "set -eu\nREGISTRY=\"git.xiaoxiajianji.com/xiaoxia/xiaoxia-saas\"\nIMAGE_TAG=\"${REGISTRY}/xiaoxia-saas-worker:${GITHUB_SHA}\"\nCACHE_REF=\"${REGISTRY}/worker-cache:${GITHUB_REF_NAME}\"\n\nbash scripts/ci/docker_build_push.sh \\\n infra/docker/worker.Dockerfile \\\n \"${IMAGE_TAG}\" \\\n \"${CACHE_REF}\" \\\n APP_VERSION=\"${GITHUB_SHA}\"\n\necho\necho \"Worker image pushed: ${IMAGE_TAG}\"" - - REGISTRY="git.xiaoxiajianji.com/xiaoxia/xiaoxia-saas" - - IMAGE_NAME="xiaoxia-saas-worker" - - VERSION="${GITHUB_REF_NAME}" - - CACHE_REF="${REGISTRY}/worker-cache:main" - - - echo "Building Production Worker image: ${VERSION}" - - docker buildx build --build-arg APP_VERSION="${VERSION}" --cache-from "type=registry,ref=${CACHE_REF},ignore-error=true" --cache-to "type=registry,ref=${CACHE_REF},mode=min" -f infra/docker/worker.Dockerfile -t "${REGISTRY}/${IMAGE_NAME}:${VERSION}" --push . - - echo "Production Worker image pushed: ${REGISTRY}/${IMAGE_NAME}:${VERSION}" - ' - name: Job duration summary if: always() @@ -976,24 +944,6 @@ jobs: - name: Build and push Web image (buildx cache) shell: sh run: "set -eu\nREGISTRY=\"git.xiaoxiajianji.com/xiaoxia/xiaoxia-saas\"\nIMAGE_TAG=\"${REGISTRY}/xiaoxia-saas-web:${GITHUB_SHA}\"\nCACHE_REF=\"${REGISTRY}/web-cache:${GITHUB_REF_NAME}\"\n\nbash scripts/ci/docker_build_push.sh \\\n infra/docker/web.Dockerfile \\\n \"${IMAGE_TAG}\" \\\n \"${CACHE_REF}\" \\\n APP_VERSION=\"${GITHUB_SHA}\"\n\necho\necho \"Web image pushed: ${IMAGE_TAG}\"" - - REGISTRY="git.xiaoxiajianji.com/xiaoxia/xiaoxia-saas" - - IMAGE_NAME="xiaoxia-saas-web" - - VERSION="${GITHUB_REF_NAME}" - - CACHE_REF="${REGISTRY}/web-cache:main" - - NGINX_CONF="infra/docker/nginx-production.conf" - - - echo "Building Production Web image: ${VERSION}" - - docker buildx build --cache-from "type=registry,ref=${CACHE_REF},ignore-error=true" --cache-to "type=registry,ref=${CACHE_REF},mode=max" -f infra/docker/web-artifact.Dockerfile --build-arg "NGINX_CONF=${NGINX_CONF}" -t "${REGISTRY}/${IMAGE_NAME}:${VERSION}" --push . - - echo "Production Web image pushed: ${REGISTRY}/${IMAGE_NAME}:${VERSION}" - ' - name: Cleanup old Docker images if: always()