Commit 5e6e4fec authored by Markus Mirz's avatar Markus Mirz
Browse files

Merge branch 'ci-deploy' into 'development'

Ci deploy

See merge request acs/core/simulation/dpsim!13
parents a794e0f5 2b8e0c14
variables:
DOCKER_TAG_DEV: ${CI_COMMIT_REF_NAME}
DOCKER_IMAGE_DEV: dpsim-dev
DOCKER_IMAGE_WEB: dpsim-web
GIT_SUBMODULE_STRATEGY: recursive
stages:
- prepare
- build
- docs
- deploy
docker:
stage: prepare
......@@ -44,3 +46,12 @@ docs:
- build/Documentation/Cxx/html
tags:
- docker
deploy:
stage: deploy
script:
- docker build -f Dockerfile.webdoc -t ${DOCKER_IMAGE_WEB}:${DOCKER_TAG_DEV} .
- docker images
- docker run --name dpsim-webdoc -d -p 8080:80 ${DOCKER_IMAGE_WEB}:${DOCKER_TAG_DEV}
tags:
- shell
FROM nginx
COPY build/Documentation/html /usr/share/nginx/html
COPY build/Documentation/Cxx/html /usr/share/nginx/html/cxx
\ No newline at end of file
Supports Markdown
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