From 893dc3037c1205b6eb60e69414fcd29a79cf56f5 Mon Sep 17 00:00:00 2001 From: Maksim Syomochkin Date: Sun, 11 May 2025 10:47:52 +0300 Subject: [PATCH] add deploy ci --- .gitea/workflows/deploy.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..d41d500 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -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