add deploy ci
This commit is contained in:
26
.gitea/workflows/deploy.yaml
Normal file
26
.gitea/workflows/deploy.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Deploy to MicroK8s
|
||||
|
||||
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
|
||||
snap install task --classic
|
||||
- name: Write kubeconfig
|
||||
run: |
|
||||
echo "${{ secrets.KUBECONFIG }}" > kubeconfig
|
||||
- name: Deploy manifests
|
||||
run: |
|
||||
export KUBECONFIG=$PWD/kubeconfig
|
||||
kubectl version
|
||||
helm version
|
||||
task --version
|
||||
Reference in New Issue
Block a user