Skip to content

Instantly share code, notes, and snippets.

@robsonandradev
Created December 1, 2021 19:14
Show Gist options
  • Save robsonandradev/94c87c9c1f909413d3ce5e154a084d5d to your computer and use it in GitHub Desktop.
Save robsonandradev/94c87c9c1f909413d3ce5e154a084d5d to your computer and use it in GitHub Desktop.
---
kind: Deployment
apiVersion: apps/v1
metadata:
labels:
infra: infra
app: gh-runner
name: gh-runner
namespace: infra
spec:
replicas: 1
selector:
matchLabels:
app: gh-runner
template:
metadata:
labels:
app: gh-runner
spec:
nodeSelector:
infra: infra
containers:
- name: gh-runner
image: passeidireto/gh-runner
imagePullPolicy: IfNotPresent
env:
- name: RUNNER_NAME
value: gh-runner
- name: GITHUB_PERSONAL_TOKEN
valueFrom:
secretKeyRef:
name: gh-runner
key: gh_token
- name: GITHUB_OWNER
value: org-name
- name: RUNNER_LABELS
value: "tag1,tag2"
---
apiVersion: v1
kind: Secret
metadata:
name: gh-runner
namespace: infra
type: Opaque
data:
gh_token: bXktdG9rZW4=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment