Simplify workflow
This commit is contained in:
24
.gitea/workflows/deploy-simple.yml
Normal file
24
.gitea/workflows/deploy-simple.yml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
name: Simple Deploy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Deploy with Helm
|
||||||
|
run: |
|
||||||
|
# 直接用 kubectl 部署(已有代碼)
|
||||||
|
helm upgrade --install cloudforge ./cloudforge-dashboard-helm \
|
||||||
|
-n cloudforge \
|
||||||
|
--create-namespace
|
||||||
|
|
||||||
|
- name: Verify
|
||||||
|
run: |
|
||||||
|
kubectl rollout status deployment/dashboard-backend -n cloudforge
|
||||||
Reference in New Issue
Block a user