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

@@ -8,23 +8,25 @@ on:
jobs: jobs:
build: build:
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: Build and Push
uses: docker/build-push-action@v4
- name: Deploy to K3S with:
run: | context: .
helm upgrade --install cloudforge ./cloudforge-dashboard-helm \ push: true
--set backend.image.tag=${{ github.sha }} \ tags: |
-n cloudforge \ localhost:5000/cloudforge-dashboard-backend:${{ github.sha }}
--create-namespace 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