Add CI/CD workflow
Some checks failed
Build and Deploy / build (push) Failing after 3m25s

This commit is contained in:
2025-11-19 14:51:24 +08:00
parent b9c1175571
commit 23f23ab6ef

View File

@@ -10,21 +10,23 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Build Docker Image - name: Set up Buildx
run: | uses: docker/setup-buildx-action@v2
docker build -t cloudforge-dashboard-backend:latest .
docker tag cloudforge-dashboard-backend:latest cloudforge-dashboard-backend:${{ github.sha }}
- name: Deploy to K3S - name: Build and Push
run: | uses: docker/build-push-action@v4
helm upgrade --install cloudforge ./cloudforge-dashboard-helm \ with:
--set backend.image.tag=${{ github.sha }} \ context: .
-n cloudforge \ push: true
--create-namespace tags: |
localhost:5000/cloudforge-dashboard-backend:${{ github.sha }}
localhost:5000/cloudforge-dashboard-backend:latest
- name: Verify Deployment - name: Deploy
run: | run: |
kubectl rollout status deployment/dashboard-backend -n cloudforge helm upgrade --install cloudforge ./helm \
--set backend.image.tag=${{ github.sha }} \
-n cloudforge