devops: updated paths for generating and pushing kubernetes manifests in gitlab ci configuration.

This commit is contained in:
Rebecca Valente 2025-07-08 12:34:04 -03:00
parent 11bba77184
commit 49a63821ca

View File

@ -13,8 +13,8 @@ Generate and Push Kubernetes Manifests:
script: script:
- helm dependency update ${HELM_CHART_PATH} - helm dependency update ${HELM_CHART_PATH}
- rm -rf .k8s/${ENVIRONMENT}/manifests - rm -rf ${HELM_BASE_PATH}/${ENVIRONMENT}/manifests
- mkdir -p .k8s/${ENVIRONMENT}/manifests - mkdir -p ${HELM_BASE_PATH}/${ENVIRONMENT}/manifests
- | - |
helm template \ helm template \
--values ${HELM_CHART_VALUES_PATH} \ --values ${HELM_CHART_VALUES_PATH} \
@ -22,7 +22,7 @@ Generate and Push Kubernetes Manifests:
${HELM_CHART_NAME} \ ${HELM_CHART_NAME} \
${HELM_CHART_PATH} \ ${HELM_CHART_PATH} \
--output-dir /tmp/manifests --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} - rm -rf /tmp/manifests/${HELM_CHART_NAME}
- git config --global user.name "$CI_PROJECT_NAME" - git config --global user.name "$CI_PROJECT_NAME"
- git config --global user.email "${CI_COMMIT_AUTHOR_EMAIL}" - git config --global user.email "${CI_COMMIT_AUTHOR_EMAIL}"