devops: added steps to generate, commit, and push kubernetes manifests to local repository in gitlab ci.

This commit is contained in:
Rebecca Valente 2025-07-08 11:50:10 -03:00
parent 7a870dafcd
commit cc9fe2715f

View File

@ -20,4 +20,11 @@ Generate and Push Kubernetes Manifests:
--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 .k8s/${ENVIRONMENT}/manifests/
- rm -rf /tmp/manifests/${HELM_CHART_NAME} - rm -rf /tmp/manifests/${HELM_CHART_NAME}
- git add .k8s/${ENVIRONMENT}/manifests
- git commit -m "[${ENVIRONMENT}] manifests updated, [ci skip]"
- git push -o ci.skip
only:
- main
- staging
- develop