chore: 提交deploy文件,step.run修改为相对路径
Some checks failed
Deploy to K3s / deploy (push) Failing after 16s

This commit is contained in:
2025-12-20 13:26:22 +08:00
parent 4ca1fb5ac9
commit 695577d53a
7 changed files with 188 additions and 3 deletions

View File

@@ -21,13 +21,13 @@ jobs:
- name: Build and push backend image
run: |
cd /workspace/tone/tonePage/apps/backend
cd apps/backend
docker build -t localhost:5000/backend:latest .
docker push localhost:5000/backend:latest
- name: Build and push frontend image
run: |
cd /workspace/tone/tonePage/apps/frontend
cd apps/frontend
docker build \
--build-arg API_BASE="http://backend-service:3001" \
-t localhost:5000/frontend:latest .
@@ -35,7 +35,7 @@ jobs:
- name: Deploy to K3s
run: |
cd /workspace/tone/tonePage/apps/deploy
cd apps/deploy
kubectl apply -f postgres-deployment.yaml
kubectl apply -f backend-deployment.yaml
kubectl apply -f frontend-deployment.yaml