devops: added steps to generate, commit, and push kubernetes manifests to local repository in gitlab ci.
This commit is contained in:
parent
7a870dafcd
commit
cc9fe2715f
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user