Private ghcr image for runner #2251
-
Hello community, we have the following setup:
I need to use a private hosted ghcr image for the runner. With public hosted images it is working fine. But for the private image, of course, I need to provide username & token. The token here is a different token to "controller-manager.github_token". Actually I would expect something like this to insert in the below yaml, but it does not seem to work: image: ghcr.io/owner/image credentials: username: ${{ github.actor }} password: ${{ secrets.github_token_chcr }} runnerdeployment.yaml: apiVersion: actions.summerwind.dev/v1alpha1 kind: RunnerDeployment metadata: name: actionsrunner-win2019 spec: replicas: 10 template: spec: image: ghcr.io/org-b/my-private-image-win2019:latest dockerdWithinRunnerContainer: true nodeSelector: kubernetes.io/os: windows repository: arg-b/my-other-private-repo labels: - ARC - windows - X64 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, |
Beta Was this translation helpful? Give feedback.
Hello,
here is the solution:
https://learn.microsoft.com/en-ca/samples/azure-samples/github-runner-on-aks/self-hosted-github-actions-runner-on-aks-azure-kubernetes-service-with-auto-scale-option/