gitops-zurrli/apps/zurrli/forgejo-runner
Renovate Bot 73b511b8c2 Update code.forgejo.org/forgejo/runner Docker tag to v3.4.1 2024-03-24 18:43:59 +00:00
..
README.md install forgejo runner 2024-02-08 21:24:11 +01:00
configmap.yaml must be an empty array 2024-02-08 21:51:29 +01:00
deployment.yaml Update code.forgejo.org/forgejo/runner Docker tag to v3.4.1 2024-03-24 18:43:59 +00:00
kustomization.yaml install forgejo runner 2024-02-08 21:24:11 +01:00
pvc.yaml install forgejo runner 2024-02-08 21:24:11 +01:00
rbac-buildx.yaml install forgejo runner 2024-02-08 21:24:11 +01:00
secret-generator.yaml install forgejo runner 2024-02-08 21:24:11 +01:00
secret.sops.yaml auto runner registration 2024-02-08 21:45:52 +01:00

README.md

Forgejo Runner

Create Kubeconfig

server=https://zurrli.tbrnt.ch:6443
name=buildx-sa-token

ca=$(kubectl -n forgejo-runner get secret/$name -o jsonpath='{.data.ca\.crt}')
token=$(kubectl -n forgejo-runner get secret/$name -o jsonpath='{.data.token}' | base64 --decode)
namespace=$(kubectl -n forgejo-runner get secret/$name -o jsonpath='{.data.namespace}' | base64 --decode)

echo "
apiVersion: v1
kind: Config
clusters:
- name: default-cluster
  cluster:
    certificate-authority-data: ${ca}
    server: ${server}
contexts:
- name: default-context
  context:
    cluster: default-cluster
    namespace: default
    user: default-user
current-context: default-context
users:
- name: default-user
  user:
    token: ${token}
" > sa.kubeconfig