feat(ops/infra/k8s): Add sourcehut configuration to sync-gcsr
This commit is contained in:
parent
af63d2604e
commit
61830ebc5b
2 changed files with 8 additions and 1 deletions
|
@ -8,6 +8,8 @@ data:
|
||||||
username: "Z2l0LXRhemppbi5nbWFpbC5jb20="
|
username: "Z2l0LXRhemppbi5nbWFpbC5jb20="
|
||||||
# This credential is a GCSR 'gitcookie' token.
|
# This credential is a GCSR 'gitcookie' token.
|
||||||
password: '{{ passLookup "gcsr-tazjin-password" | b64enc }}'
|
password: '{{ passLookup "gcsr-tazjin-password" | b64enc }}'
|
||||||
|
# This credential is an OAuth token for builds.sr.ht
|
||||||
|
sourcehut: '{{ passLookup "sr.ht-token" | b64enc }}'
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
@ -16,7 +18,7 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
app: cgit
|
app: cgit
|
||||||
spec:
|
spec:
|
||||||
replicas: 2
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: cgit
|
app: cgit
|
||||||
|
@ -53,6 +55,11 @@ spec:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: gcsr-secrets
|
name: gcsr-secrets
|
||||||
key: password
|
key: password
|
||||||
|
- name: SRHT_TOKEN
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: gcsr-secrets
|
||||||
|
key: sourcehut
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: git-volume
|
- name: git-volume
|
||||||
mountPath: /git
|
mountPath: /git
|
||||||
|
|
BIN
ops/secrets/sr.ht-token
Normal file
BIN
ops/secrets/sr.ht-token
Normal file
Binary file not shown.
Loading…
Reference in a new issue