devops: added a step to generate and push kubernetes manifests in gitlab ci configuration.

This commit is contained in:
Rebecca Valente 2025-07-08 12:35:05 -03:00
parent 49a63821ca
commit f6152c36ca

View File

@ -27,6 +27,7 @@ Generate and Push Kubernetes Manifests:
- 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}"
- | - |
git remote rm remote_origin || true; \
echo ${CI_PROJECT_URL} | \ echo ${CI_PROJECT_URL} | \
sed 's/https:\/\///' | \ sed 's/https:\/\///' | \
xargs -I## git remote add remote_origin "https://oauth2:${COMMIT_TOKEN}@##.git" xargs -I## git remote add remote_origin "https://oauth2:${COMMIT_TOKEN}@##.git"