fix: remove GitHub dependencies from CI/CD workflow
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 1m31s

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) <noreply@anthropic.com>
This commit is contained in:
repair-agent 2026-04-02 16:14:43 +08:00
parent 34938a1aa0
commit b9a4dd62c4

View File

@ -27,56 +27,43 @@ jobs:
echo "DOMAIN_WEB=qiyuan-log-center-web.test.airlabs.art" >> $GITHUB_ENV echo "DOMAIN_WEB=qiyuan-log-center-web.test.airlabs.art" >> $GITHUB_ENV
fi 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 - name: Login to Volcano Engine CR
uses: docker/login-action@v2 run: |
with: echo "${{ secrets.CR_PASSWORD }}" | docker login --username "${{ secrets.CR_USERNAME }}" --password-stdin ${{ secrets.CR_SERVER }}
registry: ${{ secrets.CR_SERVER }}
username: ${{ secrets.CR_USERNAME }}
password: ${{ secrets.CR_PASSWORD }}
# Build API Image # Build API Image
- name: Build and Push API - name: Build and Push API
id: build-api id: build-api
run: | run: |
set -o pipefail set -o pipefail
docker buildx build \ docker build \
--push \
--provenance=false \
--tag ${{ secrets.CR_SERVER }}/${{ env.CR_ORG }}/log-center-api:latest \ --tag ${{ secrets.CR_SERVER }}/${{ env.CR_ORG }}/log-center-api:latest \
-f ./Dockerfile \ -f ./Dockerfile \
. 2>&1 | tee /tmp/build-api.log . 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 # Build Web Image
- name: Build and Push Web - name: Build and Push Web
id: build-web id: build-web
run: | run: |
set -o pipefail set -o pipefail
docker buildx build \ docker build \
--push \
--provenance=false \
--build-arg VITE_API_BASE_URL=https://${{ env.DOMAIN_API }} \ --build-arg VITE_API_BASE_URL=https://${{ env.DOMAIN_API }} \
--tag ${{ secrets.CR_SERVER }}/${{ env.CR_ORG }}/log-center-web:latest \ --tag ${{ secrets.CR_SERVER }}/${{ env.CR_ORG }}/log-center-web:latest \
-f ./web/Dockerfile \ -f ./web/Dockerfile \
./web 2>&1 | tee /tmp/build-web.log ./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 # Build K8s Monitor Image
- name: Build and Push K8s Monitor - name: Build and Push K8s Monitor
id: build-monitor id: build-monitor
run: | run: |
set -o pipefail set -o pipefail
docker buildx build \ docker build \
--push \
--provenance=false \
--tag ${{ secrets.CR_SERVER }}/${{ env.CR_ORG }}/k8s-pod-monitor:latest \ --tag ${{ secrets.CR_SERVER }}/${{ env.CR_ORG }}/k8s-pod-monitor:latest \
-f ./k8s-monitor/Dockerfile \ -f ./k8s-monitor/Dockerfile \
./k8s-monitor 2>&1 | tee /tmp/build-monitor.log ./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 - name: Setup Kubectl
run: | run: |