30 lines
629 B
YAML
30 lines
629 B
YAML
name: Deploy to K3S
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Helm
|
|
run: |
|
|
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
|
|
helm version
|
|
|
|
- name: Deploy with Helm
|
|
run: |
|
|
helm upgrade --install cloudforge ./cloudforge-dashboard-helm \
|
|
-n cloudforge \
|
|
--create-namespace
|
|
|
|
- name: Verify Deployment
|
|
run: |
|
|
kubectl rollout status deployment/dashboard-backend -n cloudforge -t 300s
|