added tokens
nclazz/gitea-bot/pipeline/head There was a failure building this commit Details

master
Niclas Thobaben 2022-11-28 13:51:19 +01:00
parent db6f27affd
commit e5ffffa1e6
4 changed files with 13 additions and 16 deletions

6
Jenkinsfile vendored
View File

@ -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}
'''
}
}
}

View File

@ -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: /

View File

@ -14,6 +14,9 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
nclazz_token: ""
gitea_token: ""
serviceAccount:
# Specifies whether a service account should be created
create: true

View File

@ -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"