Commit 71866b53 authored by lecornichon's avatar lecornichon
Browse files

Update .gitlab-ci.yml

parent 7c0cf91d
Pipeline #6519 failed with stages
in 44 seconds
......@@ -33,5 +33,28 @@ deploy:
- kubectl config set-credentials ${USER} --token="${USER_TOKEN}"
- kubectl config set-context ${CONTEXT} --cluster=${CLUSTER} --user=${USER}
- kubectl config use-context ${CONTEXT}
- helm upgrade --install ${PROJECT_NAME} myapps-chart-0.1.0.tgz --debug --namespace=${NAMESPACE} --set ingress.tls[0].secretName=${PROJECT_NAME}-tls,ingress.hosts[0].host=${URL},ingress.serviceName={PROJECT_NAME},${DB_IMAGE}.enabled=true,initdbUser=admin,initdbPassword=${PASSWORD_DB},db.user=admin,db.password=${PASSWORD_DB},image.repository=zasyvcng.gra5.container-registry.ovh.net/library/${CI_COMMIT_SHORT_SHA},myapps.namespace=${NAMESPACE},myapps.name=${PROJECT_NAME},myapps.selector=${PROJECT_NAME},myapps.nameDB=${PROJECT_NAME}-database,postgresql.persistence.size=1Gi,mariadb.master.persistence.size=1Gi,mariadb.slave.persistence.size=1Gi,serviceAccount.create=true,serviceAccount.name=${PROJECT_NAME}.user --values=values.yaml
- kubectl config set-cluster ${CLUSTER} --server="${SERVER}"
- kubectl config set clusters.${CLUSTER}.certificate-authority-data ${CERTIFICATE_AUTHORITY_DATA}
- kubectl config set-credentials ${USER} --token="${USER_TOKEN}"
- kubectl config set-context ${CONTEXT} --cluster=${CLUSTER} --user=${USER}
- kubectl config use-context ${CONTEXT}
- sed -i "s/letsencrypt-issuer/letsencrypt-${PROJECT_NAME}/g" values.yaml
- helm upgrade --install ${PROJECT_NAME} myapps-chart-0.1.0.tgz --debug --namespace=${NAMESPACE} \
--set ingress.tls[0].hosts[0]=${URL}\
--set ingress.tls[0].secretName=${PROJECT_NAME}-tls\
--set ingress.hosts[0].host=${URL}\
--set ingress.serviceName={PROJECT_NAME}\
--set ${DB_IMAGE}.enabled=true\
--set initdbUser=admin\
--set initdbPassword=${PASSWORD_DB}\
--set db.user=admin\
--set db.password=${PASSWORD_DB}\
--set image.repository=${IMAGE_REPO}${CI_COMMIT_SHORT_SHA}\
--set myapps.namespace=${NAMESPACE}\
--set myapps.name=${PROJECT_NAME}\
--set myapps.selector=${PROJECT_NAME}\
--set myapps.nameDB=${PROJECT_NAME}-database\
--set postgresql.persistence.size=1Gi\
--set mariadb.master.persistence.size=1Gi\
--set ingress.certmanager=letsencrypt-${PROJECT_NAME}\
--values=values.yaml
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment