Files
dashboard-backend/.gitea/workflows/build-and-deploy.yml
CloudForge Dev 23f23ab6ef
Some checks failed
Build and Deploy / build (push) Failing after 3m25s
Add CI/CD workflow
2025-11-19 14:51:24 +08:00

33 lines
685 B
YAML

name: Build and Deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Buildx
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: |
helm upgrade --install cloudforge ./helm \
--set backend.image.tag=${{ github.sha }} \
-n cloudforge