Commit 1d4a72d8 authored by Matija Obreza's avatar Matija Obreza

DOCKER_VERSION in .gitlab-ci.yml

parent 61b81882
variables:
GENESYS_VERSION: "2.0"
DOCKER_HOST: "genesys1.swarm.genesys-pgr.org"
DOCKER_HOST: genesys1.swarm.genesys-pgr.org
DOCKER_VERSION: latest
stages:
- compile
......@@ -48,7 +49,7 @@ package genesys branch:
.docker_image_template: &docker_image
image: docker:latest
image: docker:${DOCKER_VERSION}
before_script:
- echo Building docker image ${CI_REGISTRY_IMAGE} on ${DOCKER_HOST}
- echo Registry ${CI_REGISTRY} user=${CI_REGISTRY_USER} ${CI_REGISTRY_PASSWORD}
......@@ -92,7 +93,7 @@ dockerize genesys branch:
stage: dockerize
dependencies:
- package genesys branch
# when: manual
# when: manual
allow_failure: false
except:
- master
......@@ -102,11 +103,11 @@ dockerize genesys branch:
deploy for review:
stage: deploy
image: docker:latest
image: docker:${DOCKER_VERSION}
except:
- master
- production
# when: manual
# when: manual
allow_failure: false
environment:
name: review/$CI_COMMIT_REF_SLUG
......@@ -138,7 +139,7 @@ deploy for review:
remove review instance:
stage: deploy
image: docker:latest
image: docker:${DOCKER_VERSION}
except:
- master
- production
......@@ -165,7 +166,7 @@ remove review instance:
deploy on staging server:
stage: deploy
image: docker:latest
image: docker:${DOCKER_VERSION}
only:
- master
variables:
......
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