30 lines
769 B
YAML
30 lines
769 B
YAML
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
|
|
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b ~/.local/bin
|
|
- name: Write kubeconfig
|
|
run: |
|
|
echo "${{ secrets.KUBECONFIG }}" > kubeconfig
|
|
- uses: actions-hub/kubectl@master
|
|
env:
|
|
KUBE_CONFIG: ${{ secrets.KUBECONFIG }}
|
|
- name: Deploy manifests
|
|
run: |
|
|
export KUBECONFIG=$PWD/kubeconfig
|
|
kubectl version
|
|
helm version
|
|
task --version
|