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 run: |
docker build -t cloudforge-dashboard-backend:latest .
docker tag cloudforge-dashboard-backend:latest cloudforge-dashboard-backend:${{ github.sha }}
- name: Build and Push - name: Deploy to K3S
uses: docker/build-push-action@v4 run: |
with: helm upgrade --install cloudforge ./cloudforge-dashboard-helm \
context: . --set backend.image.tag=${{ github.sha }} \
push: true -n cloudforge \
tags: | --create-namespace
localhost:5000/cloudforge-dashboard-backend:${{ github.sha }}
localhost:5000/cloudforge-dashboard-backend:latest
- name: Deploy - name: Verify Deployment
run: | run: |
helm upgrade --install cloudforge ./helm \ kubectl rollout status deployment/dashboard-backend -n cloudforge
--set backend.image.tag=${{ github.sha }} \
-n cloudforge