Commit faba1beb authored by Lukas Riedel's avatar Lukas Riedel

ci: Store DUNE environment image as variable

parent da8296a8
image: dorie/dune-env:2.5.1
variables:
DUNE_CONTROL_PATH: /opt/dune:$CI_PROJECT_DIR
DUNECONTROL: ./dune-common/bin/dunecontrol
......@@ -11,6 +9,10 @@ variables:
DIND_PROCNUM: 3
DOCKER_LOGIN:
docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_PW
DUNE_ENV_IMAGE:
dorie/dune-env:2.5.1
image: $DUNE_ENV_IMAGE
before_script:
- cd /opt/dune
......@@ -36,8 +38,8 @@ setup:dune-env:
before_script:
- $DOCKER_LOGIN
script:
- 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
- docker build --build-arg PROCNUM=$DIND_PROCNUM -f dockerfiles/dune-env -t $DUNE_ENV_IMAGE .
- docker push $DUNE_ENV_IMAGE
prep:update-dune:
stage: prep
......@@ -54,8 +56,8 @@ prep:update-dune:
before_script:
- $DOCKER_LOGIN
script:
- docker build --build-arg PROCNUM=$DIND_PROCNUM -f dockerfiles/dune-env-update -t dorie/dune-env:2.5.1 .
- docker push dorie/dune-env:2.5.1
- docker build --build-arg PROCNUM=$DIND_PROCNUM -f dockerfiles/dune-env-update -t $DUNE_ENV_IMAGE .
- docker push $DUNE_ENV_IMAGE
build:main:
stage: build
......
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