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

This commit is contained in:
2025-11-19 15:07:36 +08:00
parent 23f23ab6ef
commit 02d794e293

View File

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