Skip to content
Snippets Groups Projects
Verified Commit 29709745 authored by Martin Weise's avatar Martin Weise
Browse files

WIP

parent 57a8b6b0
Branches
Tags
No related merge requests found
...@@ -166,8 +166,8 @@ build-helm: ...@@ -166,8 +166,8 @@ build-helm:
- echo "$CI_GPG_KEYRING" | base64 -d > ./secring.gpg - echo "$CI_GPG_KEYRING" | base64 -d > ./secring.gpg
- echo "$CI_REGISTRY_PASSWORD" | docker login --username "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY_URL - echo "$CI_REGISTRY_PASSWORD" | docker login --username "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY_URL
script: script:
- apk add sed helm curl - apk add --no-cache helm
- helm package ./helm/dbrepo --destination ./build - make build-helm
deploy-staging: deploy-staging:
image: docker.io/alpine:${ALPINE_VERSION} image: docker.io/alpine:${ALPINE_VERSION}
...@@ -180,10 +180,7 @@ deploy-staging: ...@@ -180,10 +180,7 @@ deploy-staging:
before_script: before_script:
- apk add --no-cache helm kubectl - apk add --no-cache helm kubectl
- echo ${CI_K8S_CONFIG} | base64 -d > ./kubecfg - echo ${CI_K8S_CONFIG} | base64 -d > ./kubecfg
- helm dependency update ./helm/seaweedfs - make build-helm
- helm package ./helm/seaweedfs --destination ./build
- helm dependency update ./helm/dbrepo
- helm package ./helm/dbrepo --destination ./build
- helm -n ${CI_ENV_STAGING_NAMESPACE} uninstall ${CI_ENV_STAGING_RELEASE_NAME} --ignore-not-found - helm -n ${CI_ENV_STAGING_NAMESPACE} uninstall ${CI_ENV_STAGING_RELEASE_NAME} --ignore-not-found
- kubectl -n ${CI_ENV_STAGING_NAMESPACE} delete pvc --all - kubectl -n ${CI_ENV_STAGING_NAMESPACE} delete pvc --all
script: script:
...@@ -388,14 +385,15 @@ release-helm: ...@@ -388,14 +385,15 @@ release-helm:
dependencies: dependencies:
- build-helm - build-helm
before_script: before_script:
- "apk add sed helm"
- "docker logout ${CI_REGISTRY_URL}" - "docker logout ${CI_REGISTRY_URL}"
- "echo ${CI_REGISTRY_PASSWORD} | docker login --username ${CI_REGISTRY_USER} --password-stdin ${CI_REGISTRY_URL}" - "echo ${CI_REGISTRY_PASSWORD} | docker login --username ${CI_REGISTRY_USER} --password-stdin ${CI_REGISTRY_URL}"
- "docker logout ${CI_REGISTRY2_URL}" - "docker logout ${CI_REGISTRY2_URL}"
- "echo ${CI_REGISTRY2_PASSWORD} | docker login --username ${CI_REGISTRY2_USER} --password-stdin ${CI_REGISTRY2_URL}" - "echo ${CI_REGISTRY2_PASSWORD} | docker login --username ${CI_REGISTRY2_USER} --password-stdin ${CI_REGISTRY2_URL}"
- "apk add sed helm curl"
- "mkdir -p ~/.gnupg" - "mkdir -p ~/.gnupg"
- echo "$CI_GPG_KEYRING" | base64 -d > ~/.gnupg/secring.gpg - echo "$CI_GPG_KEYRING" | base64 -d > ~/.gnupg/secring.gpg
- echo "$CI_GPG_KEYRING2" | base64 -d > ~/.gnupg/pubring.gpg - echo "$CI_GPG_KEYRING2" | base64 -d > ~/.gnupg/pubring.gpg
- make build-helm
- "helm package ./helm/dbrepo --sign --key 'Martin Weise' --keyring ~/.gnupg/secring.gpg --destination ./build" - "helm package ./helm/dbrepo --sign --key 'Martin Weise' --keyring ~/.gnupg/secring.gpg --destination ./build"
- "helm plugin install https://github.com/sigstore/helm-sigstore" - "helm plugin install https://github.com/sigstore/helm-sigstore"
script: script:
......
...@@ -31,9 +31,7 @@ build-lib: ## Build the Python Library. ...@@ -31,9 +31,7 @@ build-lib: ## Build the Python Library.
.PHONY: build-helm .PHONY: build-helm
build-helm: ## Build the DBRepo and DBRepo MariaDB Galera Helm Charts. build-helm: ## Build the DBRepo and DBRepo MariaDB Galera Helm Charts.
./.scripts/check-helm.sh
helm dependency update ./helm/seaweedfs helm dependency update ./helm/seaweedfs
helm package ./helm/seaweedfs --destination ./build helm package ./helm/seaweedfs --destination ./build
helm dependency update ./helm/dbrepo helm dependency update ./helm/dbrepo
helm package ./helm/dbrepo --destination ./build helm package ./helm/dbrepo --destination ./build
helm schema -input ./helm/dbrepo/values.yaml -output ./helm/dbrepo/values.schema.json
...@@ -9,6 +9,8 @@ gen-swagger-doc: build-images ## Generate Swagger documentation and fetch. ...@@ -9,6 +9,8 @@ gen-swagger-doc: build-images ## Generate Swagger documentation and fetch.
.PHONY: gen-helm-doc .PHONY: gen-helm-doc
gen-helm-doc: build-helm ## Generate Helm documentation and schema gen-helm-doc: build-helm ## Generate Helm documentation and schema
./.scripts/check-helm.sh
helm schema -input ./helm/dbrepo/values.yaml -output ./helm/dbrepo/values.schema.json
readme-generator --readme ./helm/dbrepo/README.md --values ./helm/dbrepo/values.yaml readme-generator --readme ./helm/dbrepo/README.md --values ./helm/dbrepo/values.yaml
.PHONY: gen-dbrepo-doc .PHONY: gen-dbrepo-doc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment