Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Commits
29709745
Verified
Commit
29709745
authored
6 months ago
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
WIP
parent
57a8b6b0
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+5
-7
5 additions, 7 deletions
.gitlab-ci.yml
make/build.mk
+0
-2
0 additions, 2 deletions
make/build.mk
make/gen.mk
+2
-0
2 additions, 0 deletions
make/gen.mk
with
7 additions
and
9 deletions
.gitlab-ci.yml
+
5
−
7
View file @
29709745
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
make/build.mk
+
0
−
2
View file @
29709745
...
@@ -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
This diff is collapsed.
Click to expand it.
make/gen.mk
+
2
−
0
View file @
29709745
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment