From cc9fe2715f6f42c1cae9228ee49f290c572e5252 Mon Sep 17 00:00:00 2001 From: Rebecca Valente Date: Tue, 8 Jul 2025 11:50:10 -0300 Subject: [PATCH] devops: added steps to generate, commit, and push kubernetes manifests to local repository in gitlab ci. --- ...art-generate-and-push-to-local-repository.gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jobs/helm-chart-generate-and-push-to-local-repository.gitlab-ci.yml b/jobs/helm-chart-generate-and-push-to-local-repository.gitlab-ci.yml index bf26964..f6a8135 100644 --- a/jobs/helm-chart-generate-and-push-to-local-repository.gitlab-ci.yml +++ b/jobs/helm-chart-generate-and-push-to-local-repository.gitlab-ci.yml @@ -20,4 +20,11 @@ Generate and Push Kubernetes Manifests: --output-dir /tmp/manifests - mv /tmp/manifests/${HELM_CHART_NAME}/templates/*.yaml .k8s/${ENVIRONMENT}/manifests/ - 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