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

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