Updated credentials in Jenkinsfile. #3
nclazz/nclazz-mail-relay/pipeline/head This commit looks good Details

pull/21/head
Niclas Thobaben 2022-02-15 14:58:26 +01:00
parent d7edbc8237
commit 0afa1eacfd
3 changed files with 15 additions and 1 deletions

7
Jenkinsfile vendored
View File

@ -3,6 +3,8 @@ pipeline {
environment { environment {
NEXUS = credentials('jenkins_nexus') NEXUS = credentials('jenkins_nexus')
MAIL = credentials('robots_mail')
NCLAZZ = credentials('nclazz_api_token')
DOCKER_REGISTRY = "docker.nclazz.de" DOCKER_REGISTRY = "docker.nclazz.de"
DOCKER_GROUP = 'nclazz-service' DOCKER_GROUP = 'nclazz-service'
@ -102,7 +104,10 @@ pipeline {
slackChannel: 'deployment', slackChannel: 'deployment',
env: [ env: [
PORT: 7006, PORT: 7006,
VERSION: env.DOCKER_VERSION VERSION: env.DOCKER_VERSION,
MAIL_USERNAME: env.MAIL_USR,
MAIL_PASSWORD: env.MAIL_PSW,
AUTH_TOKEN: env.NCLAZZ_PWS
] ]
) )
exposeService( exposeService(

View File

@ -2,6 +2,10 @@ version: '3.8'
services: services:
service: service:
image: docker.nclazz.de/nclazz-service/mail-relay:$VERSION image: docker.nclazz.de/nclazz-service/mail-relay:$VERSION
environment:
SPRING_MAIL_USERNAME: "${MAIL_USERNAME}"
SPRING_MAIL_PASSWORD: "${MAIL_PASSWORD}"
NCLAZZ_AUTH_TOKEN: "${AUTH_TOKEN}"
stop_grace_period: 60s stop_grace_period: 60s
deploy: deploy:
replicas: 1 replicas: 1

View File

@ -7,5 +7,10 @@ management.endpoints.web.exposure.include=info,health
management.endpoint.info.enabled=true management.endpoint.info.enabled=true
management.endpoint.health.enabled=true management.endpoint.health.enabled=true
spring.mail.username=
spring.mail.password=
spring.mail.host=smtp.nclazz.de
spring.mail.port=25
spring.mail.protocol=smtp
nclazz.auth.token= nclazz.auth.token=