Skip to content
Snippets Groups Projects
Commit e2ae46b3 authored by anne.matthes's avatar anne.matthes
Browse files

Add upload stage

parent ce45a1e1
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,32 @@ build:
tags:
- kubernetes
upload Helm Chart:
stage: build
image: alpine/helm:3.5.3
rules:
- if: $CI_MERGE_REQUEST_ID
when: never
- if: '$CI_COMMIT_BRANCH == "main"'
when: on_success
variables:
TAG_NAME: stable
- if: '$CI_COMMIT_BRANCH == "develop"'
when: on_success
variables:
TAG_NAME: latest
script:
- HELM_TAG=$(grep -E -o "(version:)(.*)" helm/manifest-service/Chart.yaml | sed -E 's/.*version:[[:space:]](.*)/\1/g')
- export HELM_EXPERIMENTAL_OCI=1
- helm registry login registry.open-xchange.com -u "$OX_REGISTRY_USER" -p "$OX_REGISTRY_TOKEN"
- helm chart save helm/manifest-service registry.open-xchange.com//frontend/manifest-service:$TAG_NAME
- helm chart save helm/manifest-service registry.open-xchange.com//frontend/manifest-service
- helm chart push registry.open-xchange.com//frontend/manifest-service:$TAG_NAME
- helm chart push registry.open-xchange.com//frontend/manifest-service:$HELM_TAG
tags:
- kubernetes
# Helm is used for deploying everything to kubernetes
# Afterwards we do a rolling restart of our deployment
deploy:
......
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