Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
me-test
Commits
9710c7fc
Commit
9710c7fc
authored
Jul 16, 2020
by
Matthias
Browse files
update hidden files
parent
679d7450
Pipeline
#11627
passed with stages
in 4 minutes and 47 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.dockerignore
0 → 100644
View file @
9710c7fc
# Created by .ignore support plugin (hsz.mobi)
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
.idea/**/gradle.xml
.idea/**/libraries
cmake-build-*/
.idea/**/mongoSettings.xml
*.iws
out/
.idea_modules/
atlassian-ide-plugin.xml
.idea/replstate.xml
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
.idea/httpRequests
.gradle
/build/
gradle-app.setting
!gradle-wrapper.jar
.gradletasknamecache
*.class
*.log
*.ctxt
.mtj.tmp/
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
hs_err_pid*
.gitignore
0 → 100644
View file @
9710c7fc
!.idea/copyright
.idea/
.gradle/*
build/*
out/*
\ No newline at end of file
.gitlab-ci.yml
View file @
9710c7fc
variables
:
# Global definierte Umgebungsvariablen zur Nutzung in einzelnen jobs
DOCKER_TLS_CERTDIR
:
"
"
# Notwendig, damit mit Docker Registry kommuniziert werden kann
variables
:
DOCKER_TLS_CERTDIR
:
"
"
stages
:
# Stages sind Gruppen von jobs, welche parallel laufen können
stages
:
-
test
-
publish
test
:
stage
:
test
image
:
python:3.8
before_script
:
-
pip install pip --upgrade
-
pip install -r requirements.txt
image
:
gradle:6.3-jdk8
tags
:
-
mbr
script
:
-
flake8 ./me_test_app
-
gradle --no-daemon --no-scan --no-build-cache test --fail-fast --tests "org.memobase.Tests"
.build-image
:
# .-Präfix markiert ein job-template
.build-image
:
stage
:
publish
image
:
docker:stable
services
:
...
...
@@ -27,14 +26,14 @@ test:
-
docker logout
build-tagged-image
:
extends
:
.build-image
# Implementiert das job-template .build-image
extends
:
.build-image
variables
:
IMAGE_TAG
:
"
$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"
# $CI_*-Variablen gehören zu einem set an vordefinierten Variablen
IMAGE_TAG
:
"
$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"
REGISTRY_PASSWORD
:
"
$CI_REGISTRY_PASSWORD"
REGISTRY_USER
:
"
$CI_REGISTRY_USER"
REGISTRY
:
"
$CI_REGISTRY"
DOCKERFILE
:
"
Dockerfile"
only
:
# job wird nur in folgenden Branches verwendet, wobei tags = getaggte commits
only
:
-
tags
build-latest-image
:
...
...
@@ -56,6 +55,29 @@ build-feature-branch-image:
REGISTRY_USER
:
"
$CI_REGISTRY_USER"
REGISTRY
:
"
$CI_REGISTRY"
DOCKERFILE
:
"
Dockerfile"
except
:
# job wird in allen branches ausser den folgenden verwendet
except
:
-
master
-
tags
test-chart
:
stage
:
test
image
:
dtzar/helm-kubectl:3.2.0
tags
:
-
mbr
script
:
-
helm lint helm-charts/
publish-chart
:
stage
:
publish
image
:
dtzar/helm-kubectl:3.2.0
tags
:
-
mbr
script
:
-
export HELM_EXPERIMENTAL_OCI=1
-
helm registry login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
-
./insert_chart_versions.sh
-
helm chart save helm-charts/ "$CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_TAG-chart"
-
helm chart push "$CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_TAG-chart"
-
helm registry logout "$CI_REGISTRY"
only
:
-
tags
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment