fix: install kubectl and configure kubeconfig in CI
Some checks failed
Build & Deploy to K3s / build-and-deploy (push) Failing after 22s
Some checks failed
Build & Deploy to K3s / build-and-deploy (push) Failing after 22s
This commit is contained in:
parent
e633a5ef72
commit
8e39827926
@ -29,6 +29,16 @@ jobs:
|
|||||||
docker push ${{ env.IMAGE }}:${{ github.sha }}
|
docker push ${{ env.IMAGE }}:${{ github.sha }}
|
||||||
docker push ${{ env.IMAGE }}:latest
|
docker push ${{ env.IMAGE }}:latest
|
||||||
|
|
||||||
|
- name: Install kubectl
|
||||||
|
run: |
|
||||||
|
curl -LO "https://dl.k8s.io/release/$(curl -Ls https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
|
||||||
|
chmod +x kubectl && mv kubectl /usr/local/bin/kubectl
|
||||||
|
|
||||||
|
- name: Configure kubeconfig
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/.kube
|
||||||
|
echo "${{ secrets.KUBECONFIG }}" | base64 -d > ~/.kube/config
|
||||||
|
|
||||||
- name: Deploy to K3s
|
- name: Deploy to K3s
|
||||||
run: |
|
run: |
|
||||||
kubectl apply -f k8s/namespace.yml
|
kubectl apply -f k8s/namespace.yml
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user