Skip to content
Snippets Groups Projects
Verified Commit b54c43f2 authored by Jan-Niclas Strüwer's avatar Jan-Niclas Strüwer
Browse files

Merge branch 'dev' into feature/reworkingKpiHierarchy

parents 241542b8 48c46ae3
No related branches found
No related tags found
1 merge request!21Extract KPI logic to Library
Pipeline #67780 passed
......@@ -57,12 +57,11 @@ deploy_development:
script:
- |-
set -x
alias dev="kubectl --namespace=fraunhofer"
dev apply -f ./kubernetes/configmap.yaml
dev set image -f ./kubernetes/deployment.yaml "b-container=registry.opencode.de/opencode-analyzer/data-provider:dev_${CI_COMMIT_SHORT_SHA}" --local -o yaml | dev apply -f -
dev apply -f ./kubernetes/service.yaml
dev rollout status -f ./kubernetes/deployment.yaml --watch=true --timeout 300s || (
dev rollout undo -f ./kubernetes/deployment.yaml
kubectl --namespace=fraunhofer apply -f ./kubernetes/configmap.yaml
kubectl --namespace=fraunhofer set image -f ./kubernetes/deployment.yaml "b-container=registry.opencode.de/opencode-analyzer/data-provider:dev_${CI_COMMIT_SHORT_SHA}" --local -o yaml | kubectl --namespace=fraunhofer apply -f -
kubectl --namespace=fraunhofer apply -f ./kubernetes/service.yaml
kubectl --namespace=fraunhofer rollout status -f ./kubernetes/deployment.yaml --watch=true --timeout 300s || (
kubectl --namespace=fraunhofer rollout undo -f ./kubernetes/deployment.yaml
exit 1
)
......@@ -74,8 +73,9 @@ deploy_production:
only:
- main
script:
- alias prod="kubectl --namespace=fraunhoferprod"
- prod apply -f ./kubernetes/configmap-prod.yaml
- prod set image -f ./kubernetes/deployment-prod.yaml b-container=registry.opencode.de/opencode-analyzer/data-provider:${CI_COMMIT_SHORT_SHA} --local -o yaml | prod apply -f -
- prod apply -f ./kubernetes/service.yaml
- |-
set -x
kubectl --namespace=fraunhoferprod apply -f ./kubernetes/configmap-prod.yaml
kubectl --namespace=fraunhoferprod set image -f ./kubernetes/deployment-prod.yaml b-container=registry.opencode.de/opencode-analyzer/data-provider:${CI_COMMIT_SHORT_SHA} --local -o yaml | kubectl --namespace=fraunhoferprod apply -f -
kubectl --namespace=fraunhoferprod apply -f ./kubernetes/service.yaml
# XXX add rollout undo if tested on dev
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.