This commit is contained in:
commit
2d963aa479
1 changed files with 29 additions and 0 deletions
29
.forgejo/workflows/deploy.yaml
Normal file
29
.forgejo/workflows/deploy.yaml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
name: Deployment
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
env:
|
||||||
|
CERT_MANAGER_VERSION: "1.17.1"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
container:
|
||||||
|
runs-on: docker
|
||||||
|
container: fleaz/kubeci
|
||||||
|
steps:
|
||||||
|
- name: "Setup k8s context"
|
||||||
|
run: |
|
||||||
|
- 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-credentials forgejo --token="${{secrets.KUBE_API_TOKEN}}"
|
||||||
|
- kubectl config set-context k3s --cluster k3s --user forgejo --namespace default
|
||||||
|
- kubectl config use-context k3s
|
||||||
|
- name: "Deploy"
|
||||||
|
run: |
|
||||||
|
helm repo add jetstack https://charts.jetstack.io --force-update
|
||||||
|
helm install \
|
||||||
|
cert-manager jetstack/cert-manager \
|
||||||
|
--namespace cert-manager \
|
||||||
|
--create-namespace \
|
||||||
|
--version v${CERT_MANAGER_VERSION} \
|
||||||
|
--set crds.enabled=true
|
Loading…
Add table
Add a link
Reference in a new issue