devops: updated paths for generating and pushing kubernetes manifests in gitlab ci configuration.
This commit is contained in:
parent
11bba77184
commit
49a63821ca
@ -13,8 +13,8 @@ Generate and Push Kubernetes Manifests:
|
||||
|
||||
script:
|
||||
- helm dependency update ${HELM_CHART_PATH}
|
||||
- rm -rf .k8s/${ENVIRONMENT}/manifests
|
||||
- mkdir -p .k8s/${ENVIRONMENT}/manifests
|
||||
- rm -rf ${HELM_BASE_PATH}/${ENVIRONMENT}/manifests
|
||||
- mkdir -p ${HELM_BASE_PATH}/${ENVIRONMENT}/manifests
|
||||
- |
|
||||
helm template \
|
||||
--values ${HELM_CHART_VALUES_PATH} \
|
||||
@ -22,7 +22,7 @@ Generate and Push Kubernetes Manifests:
|
||||
${HELM_CHART_NAME} \
|
||||
${HELM_CHART_PATH} \
|
||||
--output-dir /tmp/manifests
|
||||
- mv /tmp/manifests/${HELM_CHART_NAME}/templates/*.yaml .k8s/${ENVIRONMENT}/manifests/
|
||||
- mv /tmp/manifests/${HELM_CHART_NAME}/templates/*.yaml ${HELM_BASE_PATH}/${ENVIRONMENT}/manifests/
|
||||
- rm -rf /tmp/manifests/${HELM_CHART_NAME}
|
||||
- git config --global user.name "$CI_PROJECT_NAME"
|
||||
- git config --global user.email "${CI_COMMIT_AUTHOR_EMAIL}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user