In order to mitigate against the brute force attacks against Gitlab accounts, we are moving to all edu-ID Logins. We would like to remind you to link your account with your edu-id. Login will be possible only by edu-ID after November 30, 2021. Here you can find the instructions for linking your account.

If you don't have a SWITCH edu-ID, you can create one with this guide here

kind regards

Commit c2ff7a54 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Refactor deployment

parent 4defe007
Pipeline #11506 passed with stages
in 5 minutes and 8 seconds
...@@ -65,7 +65,7 @@ test-chart: ...@@ -65,7 +65,7 @@ test-chart:
tags: tags:
- mbr - mbr
script: script:
- helm lint chart/ - helm lint helm-charts/
publish-chart: publish-chart:
stage: publish stage: publish
...@@ -76,7 +76,7 @@ publish-chart: ...@@ -76,7 +76,7 @@ publish-chart:
- export HELM_EXPERIMENTAL_OCI=1 - export HELM_EXPERIMENTAL_OCI=1
- helm registry login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY" - helm registry login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
- ./insert_chart_versions.sh - ./insert_chart_versions.sh
- helm chart save chart/ "$CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_TAG-chart" - helm chart save helm-charts/ "$CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_TAG-chart"
- helm chart push "$CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_TAG-chart" - helm chart push "$CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_TAG-chart"
- helm registry logout "$CI_REGISTRY" - helm registry logout "$CI_REGISTRY"
only: only:
......
...@@ -5,6 +5,6 @@ metadata: ...@@ -5,6 +5,6 @@ metadata:
namespace: memobase namespace: memobase
data: data:
APPLICATION_ID: "{{ .Values.deploymentName }}-app" APPLICATION_ID: "{{ .Values.deploymentName }}-app"
TOPIC_IN: "{{ .Values.deploymentName }}-input" TOPIC_IN: "{{ .Values.inputTopic }}"
TOPIC_OUT: "{{ .Values.deploymentName }}-output" TOPIC_OUT: "{{ .Values.outputTopic }}"
TOPIC_PROCESS: "{{ .Values.deploymentName }}-reporting" TOPIC_PROCESS: "{{ .Values.deploymentName }}-reporting"
\ No newline at end of file
...@@ -4,4 +4,6 @@ image: "memoriav/memobase-2020/services/elastic-services/search-doc-service" ...@@ -4,4 +4,6 @@ image: "memoriav/memobase-2020/services/elastic-services/search-doc-service"
tag: "latest" tag: "latest"
deploymentName: search-doc-service deploymentName: search-doc-service
kafkaConfigs: prod-kafka-bootstrap-servers kafkaConfigs: prod-kafka-bootstrap-servers
\ No newline at end of file outputTopic: search-doc-output-documents
inputTopic: search-doc-input-documents
\ No newline at end of file
#!/usr/bin/env bash #!/usr/bin/env bash
echo Creating release: $1 echo Creating release: $1
sed -i "s/version: 0.0.0/version: $CI_COMMIT_TAG/g" ./chart/Chart.yaml sed -i "s/version: 0.0.0/version: $CI_COMMIT_TAG/g" ./helm-charts/Chart.yaml
sed -i "s/appVersion: 0.0.0/appVersion: $CI_COMMIT_TAG/g" ./chart/Chart.yaml sed -i "s/appVersion: 0.0.0/appVersion: $CI_COMMIT_TAG/g" ./helm-charts/Chart.yaml
sed -i "s/tag: \"latest\"/tag: $CI_COMMIT_TAG/g" ./chart/values.yaml sed -i "s/tag: \"latest\"/tag: $CI_COMMIT_TAG/g" ./helm-charts/values.yaml
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment