Commit ce7ecf45 authored by Alexander Philipp Nowosad's avatar Alexander Philipp Nowosad
Browse files

Add GitLab pages and docker build to gitlab ci

parent c8fec024
Pipeline #122220 canceled with stages
......@@ -37,6 +37,7 @@ tslint:
paths:
- "report"
expire_in: 1 week
dependencies: []
unittest:
stage: test
......@@ -53,6 +54,7 @@ unittest:
cobertura: "coverage/bmdl-modeler/cobertura-coverage.xml"
junit: "reports/TESTS-*.xml"
expire_in: 1 week
dependencies: []
e2etest:
stage: test
......@@ -67,3 +69,34 @@ e2etest:
reports:
junit: "reports/e2e-report.xml"
expire_in: 1 week
dependencies: []
pages:
stage: deploy
script: mv dist/bmdl-modeler/ public/
cache:
policy: pull
artifacts:
paths:
- public
dependencies:
- build
only:
- master
when: manual
# See: https://git.cs.uni-paderborn.de/help/ci/docker/using_kaniko.md
buildcontainer:
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
stage: deploy
before_script: []
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_BRANCH
cache: {}
dependencies: []
only:
- master
when: manual
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment