Skip to content

Commit 9ab7ab2

Browse files
ooeyunasiyu
authored andcommitted
fix helm name conflict (#759)
Co-authored-by: siyu <[email protected]>
1 parent 7458b1c commit 9ab7ab2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.gitlab-ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,15 @@ docker_build_prod:
109109
helm install stakater-reloader stakater/reloader --set reloader.watchGlobally=false --namespace $KUBE_NAMESPACE
110110
fi
111111
112-
- helm upgrade --install flat-server-$CI_ENVIRONMENT_SLUG helm --namespace $KUBE_NAMESPACE --set replicaCount=$REPLICA_COUNT
112+
- helm upgrade --install flat-server-$HELM_NAME helm --namespace $KUBE_NAMESPACE --set replicaCount=$REPLICA_COUNT
113113

114114
deploy_dev_cn:
115115
<<: *DEPLOY
116116
variables:
117117
DOCKER_TAG: dev-$CI_COMMIT_SHA
118118
KUBE_NAMESPACE: default
119119
REPLICA_COUNT: 2
120+
HELM_NAME: flat-server-development
120121
extends: .cn
121122
<<: *DEV
122123

@@ -127,6 +128,7 @@ deploy_dev_sg:
127128
DOCKER_TAG: dev-$CI_COMMIT_SHA
128129
KUBE_NAMESPACE: sg
129130
REPLICA_COUNT: 2
131+
HELM_NAME: flat-server-sg-development
130132
<<: *DEV
131133

132134
deploy_prod_cn:
@@ -135,6 +137,7 @@ deploy_prod_cn:
135137
variables:
136138
DOCKER_TAG: $CI_COMMIT_SHA
137139
REPLICA_COUNT: 3
140+
HELM_NAME: flat-server-production
138141
<<: *PROD
139142

140143
deploy_prod_sg:
@@ -143,4 +146,5 @@ deploy_prod_sg:
143146
variables:
144147
DOCKER_TAG: $CI_COMMIT_SHA
145148
REPLICA_COUNT: 3
149+
HELM_NAME: flat-server-production
146150
<<: *PROD

0 commit comments

Comments
 (0)