ci: Fix installation of kubectl and helm
This commit is contained in:
parent
0b9a391bfa
commit
1eb936fe88
1 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue