From b9a4dd62c4993168df289de70c83fcbbeb980800 Mon Sep 17 00:00:00 2001 From: repair-agent Date: Thu, 2 Apr 2026 16:14:43 +0800 Subject: [PATCH] fix: remove GitHub dependencies from CI/CD workflow Replace all GitHub-hosted actions with shell commands to avoid GitHub connectivity issues on China servers. Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/deploy.yaml | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 4b51595..7e3424f 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -27,56 +27,43 @@ jobs: echo "DOMAIN_WEB=qiyuan-log-center-web.test.airlabs.art" >> $GITHUB_ENV fi - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - with: - config-inline: | - [registry."docker.io"] - mirrors = ["https://docker.m.daocloud.io", "https://docker.1panel.live", "https://hub.rat.dev"] - - name: Login to Volcano Engine CR - uses: docker/login-action@v2 - with: - registry: ${{ secrets.CR_SERVER }} - username: ${{ secrets.CR_USERNAME }} - password: ${{ secrets.CR_PASSWORD }} + run: | + echo "${{ secrets.CR_PASSWORD }}" | docker login --username "${{ secrets.CR_USERNAME }}" --password-stdin ${{ secrets.CR_SERVER }} # Build API Image - name: Build and Push API id: build-api run: | set -o pipefail - docker buildx build \ - --push \ - --provenance=false \ + docker build \ --tag ${{ secrets.CR_SERVER }}/${{ env.CR_ORG }}/log-center-api:latest \ -f ./Dockerfile \ . 2>&1 | tee /tmp/build-api.log + docker push ${{ secrets.CR_SERVER }}/${{ env.CR_ORG }}/log-center-api:latest 2>&1 | tee -a /tmp/build-api.log # Build Web Image - name: Build and Push Web id: build-web run: | set -o pipefail - docker buildx build \ - --push \ - --provenance=false \ + docker build \ --build-arg VITE_API_BASE_URL=https://${{ env.DOMAIN_API }} \ --tag ${{ secrets.CR_SERVER }}/${{ env.CR_ORG }}/log-center-web:latest \ -f ./web/Dockerfile \ ./web 2>&1 | tee /tmp/build-web.log + docker push ${{ secrets.CR_SERVER }}/${{ env.CR_ORG }}/log-center-web:latest 2>&1 | tee -a /tmp/build-web.log # Build K8s Monitor Image - name: Build and Push K8s Monitor id: build-monitor run: | set -o pipefail - docker buildx build \ - --push \ - --provenance=false \ + docker build \ --tag ${{ secrets.CR_SERVER }}/${{ env.CR_ORG }}/k8s-pod-monitor:latest \ -f ./k8s-monitor/Dockerfile \ ./k8s-monitor 2>&1 | tee /tmp/build-monitor.log + docker push ${{ secrets.CR_SERVER }}/${{ env.CR_ORG }}/k8s-pod-monitor:latest 2>&1 | tee -a /tmp/build-monitor.log - name: Setup Kubectl run: |