Skip to content

Commit 9240166

Browse files
committed
Merge branch 'production' of github.com:di2ag/chp_api into production
2 parents 4da6e17 + e7d3920 commit 9240166

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

deploy/chp-api/Jenkinsfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ pipeline {
3636
when { expression { return env.BUILD == 'true' }}
3737
steps {
3838
script {
39-
docker.build(env.DOCKER_REPO_NAME, "--no-cache -f ./Dockerfile ./")
39+
dir('chp_api') {
40+
script {
41+
docker.build(env.DOCKER_REPO_NAME, "--no-cache -f ./Dockerfile ./")
42+
}
43+
}
4044
sh 'docker login -u AWS -p $(aws ecr get-login-password --region us-east-1) 853771734544.dkr.ecr.us-east-1.amazonaws.com'
4145
docker.image(env.DOCKER_REPO_NAME).push("${BUILD_VERSION}")
4246
sh 'cp deploy/chp-api/configs/nginx.conf deploy/chp-api/nginx/'

deploy/chp-api/values.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ ingress:
8080

8181
tolerations:
8282
- key: "transltr"
83-
value: "managed-app"
83+
value: "chp"
8484
operator: "Equal"
8585
effect: "NoSchedule"
8686

@@ -90,10 +90,10 @@ affinity:
9090
requiredDuringSchedulingIgnoredDuringExecution:
9191
- labelSelector:
9292
matchExpressions:
93-
- key: app
93+
- key: application
9494
operator: In
9595
values:
96-
- managed-app
96+
- chp
9797
topologyKey: "kubernetes.io/hostname"
9898
# this ensures pod only runs on node with label application=managed-app
9999
nodeAffinity:
@@ -103,4 +103,4 @@ affinity:
103103
- key: application
104104
operator: In
105105
values:
106-
- managed-app
106+
- chp

0 commit comments

Comments
 (0)