This commit is contained in:
parent
2d963aa479
commit
e6320b3276
1 changed files with 5 additions and 5 deletions
|
@ -13,11 +13,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: "Setup k8s context"
|
- name: "Setup k8s context"
|
||||||
run: |
|
run: |
|
||||||
- echo "${{secrets.KUBE_API_CRT}}" > /tmp/ca.pem
|
echo "${{secrets.KUBE_API_CRT}}" > /tmp/ca.pem
|
||||||
- kubectl config set-cluster k3s --server=${{secrets.KUBE_HOST}}3 --certificate-authority=/tmp/ca.pem
|
kubectl config set-cluster k3s --server=${{secrets.KUBE_HOST}}3 --certificate-authority=/tmp/ca.pem
|
||||||
- kubectl config set-credentials forgejo --token="${{secrets.KUBE_API_TOKEN}}"
|
kubectl config set-credentials forgejo --token="${{secrets.KUBE_API_TOKEN}}"
|
||||||
- kubectl config set-context k3s --cluster k3s --user forgejo --namespace default
|
kubectl config set-context k3s --cluster k3s --user forgejo --namespace default
|
||||||
- kubectl config use-context k3s
|
kubectl config use-context k3s
|
||||||
- name: "Deploy"
|
- name: "Deploy"
|
||||||
run: |
|
run: |
|
||||||
helm repo add jetstack https://charts.jetstack.io --force-update
|
helm repo add jetstack https://charts.jetstack.io --force-update
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue