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
ac050e22
Verified
Commit
ac050e22
authored
4 months ago
by
Martin Weise
Browse files
Options
Downloads
Patches
Plain Diff
Deploy
Signed-off-by:
Martin Weise
<
martin.weise@tuwien.ac.at
>
parent
ae1bab0a
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!387
Wrong model
,
!384
Wrong model
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+36
-2
36 additions, 2 deletions
.gitlab-ci.yml
make/rel.mk
+20
-20
20 additions, 20 deletions
make/rel.mk
with
56 additions
and
22 deletions
.gitlab-ci.yml
+
36
−
2
View file @
ac050e22
...
...
@@ -36,6 +36,7 @@ stages:
-
test
-
docs
-
release
-
deploy
-
verify
-
scan
...
...
@@ -407,12 +408,24 @@ release-images:
stage
:
release
image
:
docker:${DOCKER_VERSION}-dind
dependencies
:
-
test-metadata-service
-
test-data-service
-
test-analyse-service
-
test-auth-service-init
-
test-data-service
-
test-lib
-
test-metadata-service
-
test-search-service
-
test-search-service-init
-
test-ui
variables
:
BUILD_VERSION
:
"
"
only
:
refs
:
-
dev
-
/^release-.*/
rules
:
-
if
:
$CI_COMMIT_REF_NAME == dev
variables
:
BUILD_VERSION
:
"
+git.${CI_COMMIT_SHORT_SHA}"
before_script
:
-
"
docker
logout
${CI_REGISTRY_URL}"
-
"
echo
${CI_REGISTRY_PASSWORD}
|
docker
login
--username
${CI_REGISTRY_USER}
--password-stdin
${CI_REGISTRY_URL}"
...
...
@@ -527,6 +540,27 @@ verify-dist:
script
:
-
"
curl
-v
--output
/dev/null
--fail
https://www.ifs.tuwien.ac.at/infrastructures/dbrepo/${APP_VERSION}/dist.tar.gz"
deploy-staging
:
image
:
docker.io/alpine:${ALPINE_VERSION}
stage
:
deploy
only
:
refs
:
-
dev
variables
:
KUBECONFIG
:
./kubecfg
environment
:
name
:
staging/datalab
url
:
${CI_ENV_STAGING_URL}
before_script
:
-
apk add --no-cache helm kubectl make
-
echo ${CI_K8S_CONFIG} | base64 -d > ./kubecfg
-
make build-helm
-
helm -n ${CI_ENV_STAGING_NAMESPACE} uninstall ${CI_ENV_STAGING_RELEASE_NAME} --ignore-not-found
-
kubectl -n ${CI_ENV_STAGING_NAMESPACE} delete pvc --all
-
echo "${CI_K8S_VALUES}" | base64 -d > ./values.yaml
script
:
-
helm -n ${CI_ENV_STAGING_NAMESPACE} upgrade --install ${CI_ENV_STAGING_RELEASE_NAME} ./build/dbrepo-${CHART_VERSION}.tgz --create-namespace -f ./values.yaml
scan-sonarqube
:
image
:
sonarsource/sonar-scanner-cli:${SONARQUBE_VERSION}
stage
:
scan
...
...
This diff is collapsed.
Click to expand it.
make/rel.mk
+
20
−
20
View file @
ac050e22
...
...
@@ -2,29 +2,29 @@
.PHONY
:
tag-images
tag-images
:
build-images
##
Tag the docker images.
docker tag dbrepo-analyse-service:latest
"
${
REPOSITORY_URL
}
/analyse-service:
${
APP_VERSION
}
"
docker tag dbrepo-dashboard-service:latest
"
${
REPOSITORY_URL
}
/dashboard-service:
${
APP_VERSION
}
"
docker tag dbrepo-ui:latest
"
${
REPOSITORY_URL
}
/ui:
${
APP_VERSION
}
"
docker tag dbrepo-data-service:latest
"
${
REPOSITORY_URL
}
/data-service:
${
APP_VERSION
}
"
docker tag dbrepo-auth-service-init:latest
"
${
REPOSITORY_URL
}
/auth-service-init:
${
APP_VERSION
}
"
docker tag dbrepo-metadata-service:latest
"
${
REPOSITORY_URL
}
/metadata-service:
${
APP_VERSION
}
"
docker tag dbrepo-search-db:latest
"
${
REPOSITORY_URL
}
/search-db:
${
APP_VERSION
}
"
docker tag dbrepo-search-service:latest
"
${
REPOSITORY_URL
}
/search-service:
${
APP_VERSION
}
"
docker tag dbrepo-search-service-init:latest
"
${
REPOSITORY_URL
}
/search-service-init:
${
APP_VERSION
}
"
docker tag dbrepo-storage-service-init:latest
"
${
REPOSITORY_URL
}
/storage-service-init:
${
APP_VERSION
}
"
docker tag dbrepo-analyse-service:latest
"
${
REPOSITORY_URL
}
/analyse-service:
${
APP_VERSION
}
${
BUILD_VERSION
}
"
docker tag dbrepo-dashboard-service:latest
"
${
REPOSITORY_URL
}
/dashboard-service:
${
APP_VERSION
}
${
BUILD_VERSION
}
"
docker tag dbrepo-ui:latest
"
${
REPOSITORY_URL
}
/ui:
${
APP_VERSION
}
${
BUILD_VERSION
}
"
docker tag dbrepo-data-service:latest
"
${
REPOSITORY_URL
}
/data-service:
${
APP_VERSION
}
${
BUILD_VERSION
}
"
docker tag dbrepo-auth-service-init:latest
"
${
REPOSITORY_URL
}
/auth-service-init:
${
APP_VERSION
}
${
BUILD_VERSION
}
"
docker tag dbrepo-metadata-service:latest
"
${
REPOSITORY_URL
}
/metadata-service:
${
APP_VERSION
}
${
BUILD_VERSION
}
"
docker tag dbrepo-search-db:latest
"
${
REPOSITORY_URL
}
/search-db:
${
APP_VERSION
}
${
BUILD_VERSION
}
"
docker tag dbrepo-search-service:latest
"
${
REPOSITORY_URL
}
/search-service:
${
APP_VERSION
}
${
BUILD_VERSION
}
"
docker tag dbrepo-search-service-init:latest
"
${
REPOSITORY_URL
}
/search-service-init:
${
APP_VERSION
}
${
BUILD_VERSION
}
"
docker tag dbrepo-storage-service-init:latest
"
${
REPOSITORY_URL
}
/storage-service-init:
${
APP_VERSION
}
${
BUILD_VERSION
}
"
.PHONY
:
release-images
release-images
:
tag-images
##
Release the docker images.
docker push
"
${
REPOSITORY_URL
}
/analyse-service:
${
APP_VERSION
}
"
docker push
"
${
REPOSITORY_URL
}
/dashboard-service:
${
APP_VERSION
}
"
docker push
"
${
REPOSITORY_URL
}
/ui:
${
APP_VERSION
}
"
docker push
"
${
REPOSITORY_URL
}
/data-service:
${
APP_VERSION
}
"
docker push
"
${
REPOSITORY_URL
}
/auth-service-init:
${
APP_VERSION
}
"
docker push
"
${
REPOSITORY_URL
}
/search-db:
${
APP_VERSION
}
"
docker push
"
${
REPOSITORY_URL
}
/metadata-service:
${
APP_VERSION
}
"
docker push
"
${
REPOSITORY_URL
}
/search-service:
${
APP_VERSION
}
"
docker push
"
${
REPOSITORY_URL
}
/search-service-init:
${
APP_VERSION
}
"
docker push
"
${
REPOSITORY_URL
}
/storage-service-init:
${
APP_VERSION
}
"
docker push
"
${
REPOSITORY_URL
}
/analyse-service:
${
APP_VERSION
}
${
BUILD_VERSION
}
"
docker push
"
${
REPOSITORY_URL
}
/dashboard-service:
${
APP_VERSION
}
${
BUILD_VERSION
}
"
docker push
"
${
REPOSITORY_URL
}
/ui:
${
APP_VERSION
}
${
BUILD_VERSION
}
"
docker push
"
${
REPOSITORY_URL
}
/data-service:
${
APP_VERSION
}
${
BUILD_VERSION
}
"
docker push
"
${
REPOSITORY_URL
}
/auth-service-init:
${
APP_VERSION
}
${
BUILD_VERSION
}
"
docker push
"
${
REPOSITORY_URL
}
/search-db:
${
APP_VERSION
}
${
BUILD_VERSION
}
"
docker push
"
${
REPOSITORY_URL
}
/metadata-service:
${
APP_VERSION
}
${
BUILD_VERSION
}
"
docker push
"
${
REPOSITORY_URL
}
/search-service:
${
APP_VERSION
}
${
BUILD_VERSION
}
"
docker push
"
${
REPOSITORY_URL
}
/search-service-init:
${
APP_VERSION
}
${
BUILD_VERSION
}
"
docker push
"
${
REPOSITORY_URL
}
/storage-service-init:
${
APP_VERSION
}
${
BUILD_VERSION
}
"
.PHONY
:
release-helm
release-helm
:
gen-helm-doc
##
Release the DBRepo and DBRepo MariaDB Galera Helm charts.
...
...
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