Files
Kubernetes-Build/deploymentUpdater
Janik von Rotz 70f07ab712 feat(task): simplify kubeconfig generation and update READMEs to use task command
- Refactor generate-kubconfig function to output compact YAML without extra newlines
- Update deploymentUpdater/README.md to use `task generate-kubconfig deploy`
- Update forgejoRunner/README.md to use `task generate-kubconfig buildx`
- Clarify secret setup instructions in both READMEs to reference "created kubeconfig" instead of filename
2026-04-02 11:39:31 +02:00
..

Mint System Deployment Updater

Cluster-wide service account that can update deployments.

Integration

Forgejo Deployment action

Use this service account to make deployments to Kubernetes. The deployment action requires a kubeconfig. Export the kubeconfig with this command:

task generate-kubconfig deploy

Setup secret KUBECONFIG_DEPLOY with content of the created kubeconfig.

Here is are examples of Forgejo action steps:

      - 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"
          chmod +x kubectl
          sudo mv kubectl /usr/local/bin/

      - name: Create Kubeconfig for Deployment
        run: |
          mkdir -p $HOME/.kube
          echo "${{ secrets.KUBECONFIG_DEPLOY }}" > $HOME/.kube/config