Commit 5ff1380e authored by Lukas Riedel's avatar Lukas Riedel

Add 'setup' and 'deploy' stages to CI with uploads to Docker Hub

* setup job builds and uploads DUNE environment image
* deploy job builds and uploads DORiE image
parent 4ff98ba0
......@@ -8,13 +8,30 @@ variables:
-DDUNE_PYTHON_ALLOW_GET_PIP=True
MAKE_FLAGS:
-j 4
DIND_PROCNUM: 3
before_script:
- cd /opt/dune
stages:
- setup
- build
- test
- deploy
setup:dune-env:
stage: setup
tags:
- dind
image: docker:stable
services:
- docker:dind
variables:
DOCKER_DRIVER: overlay2
script:
- docker login
- docker build --build-arg PROCNUM=$DIND_PROCNUM -f dockerfiles/dune-env -t dorie/dune-env:2.5.1 .
- docker push dorie/dune-env:2.5.1
build:main:
stage: build
......@@ -147,4 +164,18 @@ test:mass_conserve:
name: "$CI_JOB_NAME"
paths:
- $CI_PROJECT_DIR/build-cmake/Testing
expire_in: 1 day
\ No newline at end of file
expire_in: 1 day
deploy:docker:
stage: setup
tags:
- dind
image: docker:stable
services:
- docker:dind
variables:
DOCKER_DRIVER: overlay2
script:
- docker login
- docker build --build-arg PROCNUM=$DIND_PROCNUM -f dockerfiles/dorie -t dorie/dorie:latest .
- docker push dorie/latest
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