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
4791948c
Verified
Commit
4791948c
authored
Jan 24, 2024
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
Use release-candidate notes
parent
e8a8df66
No related branches found
No related tags found
2 merge requests
!235
Master
,
!233
Master
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+20
-19
20 additions, 19 deletions
.gitlab-ci.yml
Makefile
+0
-2
0 additions, 2 deletions
Makefile
helm-charts/dbrepo/Chart.yaml
+2
-2
2 additions, 2 deletions
helm-charts/dbrepo/Chart.yaml
with
22 additions
and
23 deletions
.gitlab-ci.yml
+
20
−
19
View file @
4791948c
...
...
@@ -5,7 +5,8 @@ variables:
TRIVY_CACHE_DIR
:
"
.trivycache/"
DOCKER_HOST
:
"
unix:///var/run/dind/docker.sock"
TESTCONTAINERS_RYUK_DISABLED
:
"
false"
VERSION
:
"
1.4.1"
APP_VERSION
:
"
1.4.1"
CHART_VERSION
:
"
1.4.1"
image
:
debian:12-slim
...
...
@@ -500,7 +501,7 @@ release-1.4:
script
:
-
"
ifconfig
eth0
mtu
1450
up"
-
"
apk
add
make"
-
"
TAG=${VERSION}
make
release"
-
"
TAG=${
APP_
VERSION}
make
release"
release-helm-latest
:
stage
:
release
...
...
@@ -513,10 +514,10 @@ release-helm-latest:
-
echo "$CI_REGISTRY2_PASSWORD" | docker login --username "$CI_REGISTRY2_USER" --password-stdin $CI_REGISTRY2_URL
script
:
-
apk add sed helm
-
'
sed
-i
-e
"s/^version:.*/version:
\"${VERSION}-
0.git.${CI_PIPELINE_ID}.${CI_COMMIT_SHORT_SHA}
\"/g"
./helm-charts/dbrepo/Chart.yaml'
-
'
sed
-i
-e
"s/^appVersion:.*/appVersion:
\"
${VERSION}-0.git.${CI_PIPELINE_ID}.${CI_COMMIT_SHORT_SHA}
\"/g"
./helm-charts/dbrepo/Chart.yaml'
-
'
sed
-i
-e
"s/^version:.*/version:
\"${
CHART_
VERSION}-
RC1
\"/g"
./helm-charts/dbrepo/Chart.yaml'
-
'
sed
-i
-e
"s/^appVersion:.*/appVersion:
\"
latest
\"/g"
./helm-charts/dbrepo/Chart.yaml'
-
helm package ./helm-charts/dbrepo --destination ./build
-
helm push "./build/dbrepo-${VERSION}-
0.git.${CI_PIPELINE_ID}.${CI_COMMIT_SHORT_SHA}
.tgz" "oci://${CI_REGISTRY2_URL}/helm"
-
helm push "./build/dbrepo-${
CHART_
VERSION}-
RC1
.tgz" "oci://${CI_REGISTRY2_URL}/helm"
release-helm-1.4
:
stage
:
release
...
...
@@ -528,11 +529,11 @@ release-helm-1.4:
-
echo "$CI_REGISTRY2_PASSWORD" | docker login --username "$CI_REGISTRY2_USER" --password-stdin $CI_REGISTRY2_URL
script
:
-
apk add sed helm curl
-
'
sed
-i
-e
"s/^version:.*/version:
\"${VERSION}\"/g"
./helm-charts/dbrepo/Chart.yaml'
-
'
sed
-i
-e
"s/^appVersion:.*/appVersion:
\"${VERSION}\"/g"
./helm-charts/dbrepo/Chart.yaml'
-
'
sed
-i
-e
"s/^version:.*/version:
\"${
CHART_
VERSION}\"/g"
./helm-charts/dbrepo/Chart.yaml'
-
'
sed
-i
-e
"s/^appVersion:.*/appVersion:
\"${
APP_
VERSION}\"/g"
./helm-charts/dbrepo/Chart.yaml'
-
helm package ./helm-charts/dbrepo --destination ./build
-
helm push "./build/dbrepo-${VERSION}.tgz" "oci://${CI_REGISTRY2_URL}/helm"
-
curl -sSL -X POST --form 'chart=@dbrepo-${VERSION}.tgz' --user mweise:${GITLAB_ACCESS_TOKEN} https://gitlab.example.com/api/v4/projects/450/packages/helm/api/stable/charts
-
helm push "./build/dbrepo-${
CHART_
VERSION}.tgz" "oci://${CI_REGISTRY2_URL}/helm"
-
curl -sSL -X POST --form 'chart=@dbrepo-${
CHART_
VERSION}.tgz' --user mweise:${GITLAB_ACCESS_TOKEN} https://gitlab.example.com/api/v4/projects/450/packages/helm/api/stable/charts
build-api-latest
:
stage
:
build
...
...
@@ -592,15 +593,15 @@ build-api-1.4:
-
apk add bash git maven
-
git fetch && git checkout release-v1.4
-
bash .docs/.swagger/swagger-site.sh
-
mkdir -p ./swagger/${VERSION}
-
cp -r ./site/* ./swagger/${VERSION}/
-
mkdir -p ./swagger/${
APP_
VERSION}
-
cp -r ./site/* ./swagger/${
APP_
VERSION}/
cache
:
paths
:
-
./swagger/${VERSION}
-
./swagger/${
APP_
VERSION}
artifacts
:
when
:
always
paths
:
-
./swagger/${VERSION}
-
./swagger/${
APP_
VERSION}
expire_in
:
1 days
docs-registry
:
...
...
@@ -640,8 +641,8 @@ docs-latest:
-
git fetch && git checkout master
-
pip install -r ./requirements.txt
-
mkdir -p ./final/{latest,1.3}
-
sed -i -e "s/\$TAG/${VERSION}/g"
-
sed -i -e "s/\$VERSION/${VERSION}/g"
-
sed -i -e "s/\$TAG/${
APP_
VERSION}/g"
-
sed -i -e "s/\$
APP_
VERSION/${
APP_
VERSION}/g"
-
mkdocs build && cp -r ./site ./final/latest
-
cp ./.docs/redirect.html ./final/index.html ./final/1.3/index.html
-
cp -r ./swagger/latest ./final/latest/swagger
...
...
@@ -700,10 +701,10 @@ docs-1.4:
-
pip install -r ./.docs/requirements.txt
-
wget https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/raw/dev/.docs/overrides/main.html -O .docs/overrides/main.html -q
-
mkdir -p ./final
-
sed -i -e "s/\$TAG/${VERSION}/g"
-
sed -i -e "s/\$VERSION/${VERSION}/g"
-
mkdocs build && cp -r ./site ./final/${VERSION}
-
cp -r ./swagger/${VERSION} ./final/${VERSION}/swagger
-
sed -i -e "s/\$TAG/${
APP_
VERSION}/g"
-
sed -i -e "s/\$
APP_
VERSION/${
APP_
VERSION}/g"
-
mkdocs build && cp -r ./site ./final/${
APP_
VERSION}
-
cp -r ./swagger/${
APP_
VERSION} ./final/${
APP_
VERSION}/swagger
cache
:
paths
:
-
./final
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
0
−
2
View file @
4791948c
...
...
@@ -37,8 +37,6 @@ build-swagger:
bash ./.docs/generate.sh
build-helm-chart
:
sed
-i
-e
"s/^version:.*/version:
\"
${
TAG
}
-dev
\"
/g"
./helm-charts/dbrepo/Chart.yaml
sed
-i
-e
"s/^appVersion:.*/appVersion:
\"
${
TAG
}
-dev
\"
/g"
./helm-charts/dbrepo/Chart.yaml
helm package ./helm-charts/dbrepo
--destination
./build
tag
:
tag-analyse-service tag-authentication-service tag-metadata-db tag-ui tag-metadata-service tag-data-service tag-search-db tag-search-db-init tag-search-service tag-data-db-sidecar
...
...
This diff is collapsed.
Click to expand it.
helm-charts/dbrepo/Chart.yaml
+
2
−
2
View file @
4791948c
...
...
@@ -6,8 +6,8 @@ description: |
is evolving, allows reproducing of query results and supports findable-, accessible-, interoperable- and reusable
data.
type
:
application
version
:
"
1.4.
0-dev.667653b5
1"
appVersion
:
"
1.4.0
-dev.667653b51
"
version
:
"
1.4.
1-RC
1"
appVersion
:
"
1.4.0"
keywords
:
-
dbrepo
maintainers
:
...
...
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