added tokens
nclazz/gitea-bot/pipeline/head There was a failure building this commit
Details
nclazz/gitea-bot/pipeline/head There was a failure building this commit
Details
parent
db6f27affd
commit
e5ffffa1e6
|
@ -40,7 +40,11 @@ pipeline {
|
|||
branch 'master'
|
||||
}
|
||||
steps {
|
||||
sh 'helm upgrade --install giteabot ./charts --create-namespace --namespace nclazz'
|
||||
sh '''helm upgrade --install giteabot ./charts \
|
||||
--create-namespace --namespace nclazz \
|
||||
--set nclazz_token=${NCLAZZ} \
|
||||
--set gitea_token=${GITEA_TOKEN}
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,6 +37,11 @@ spec:
|
|||
- name: http
|
||||
containerPort: {{ .Values.service.port }}
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: GITEA_TOKEN
|
||||
value: {{ .Values.gitea_token }}
|
||||
- name: NCLAZZ_TOKEN
|
||||
value: {{ .Values.nclazz_token }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
|
|
|
@ -14,6 +14,9 @@ imagePullSecrets: []
|
|||
nameOverride: ""
|
||||
fullnameOverride: ""
|
||||
|
||||
nclazz_token: ""
|
||||
gitea_token: ""
|
||||
|
||||
serviceAccount:
|
||||
# Specifies whether a service account should be created
|
||||
create: true
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
version: '3.8'
|
||||
services:
|
||||
service:
|
||||
image: docker.nclazz.de/nclazz-bots/gitea-bot:$VERSION
|
||||
environment:
|
||||
GITEA_TOKEN: "${GITEA_TOKEN}"
|
||||
NCLAZZ_AUTH_TOKEN: "${AUTH_TOKEN}"
|
||||
deploy:
|
||||
replicas: 1
|
||||
placement:
|
||||
max_replicas_per_node: 1
|
||||
update_config:
|
||||
order: start-first
|
||||
ports:
|
||||
- "${PORT}:8080"
|
Loading…
Reference in New Issue