From 1eb936fe88addd7399d2d5bc33d6299c9b9ae0d3 Mon Sep 17 00:00:00 2001 From: fleaz Date: Sun, 25 May 2025 18:47:30 +0200 Subject: [PATCH] ci: Fix installation of kubectl and helm --- .forgejo/workflows/deploy.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 49909be..84a4cc2 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -26,8 +26,17 @@ jobs: container: catthehacker/ubuntu:act-latest steps: - name: Checkout - uses: actions/checkout@v4 - - run: apt update && apt install kubectl helm + run: actions/checkout@v4 + - name: Install kubectl + run: | + curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + mv kubectl /usr/bin/kubectl + - name: Install helm + run: | + cd /tmp + curl -L "https://get.helm.sh/helm-v3.18.0-rc.2-linux-amd64.tar.gz" -o helm.tgz + tar xf helm.tgz + helm liux-amd64/helm /usr/bin/helm - name: Setup k8s context run: | echo "${{secrets.KUBE_API_CRT}}" > /tmp/ca.pem