Skip to content
Snippets Groups Projects
Commit a4c4e7f8 authored by Enrique Garcia's avatar Enrique Garcia
Browse files

Merge branch 'docker_env' into 'master'

Docker env

See merge request !13
parents 190bf08d e359e5c8
No related branches found
No related tags found
1 merge request!13Docker env
Pipeline #135603 failed
stages:
- install
- test
- deploy
- build_containers
- deploy
.junit_template: &junit_definition
artifacts:
......@@ -37,6 +38,24 @@ test_py37:
--cov-report=term
<<: *junit_definition
build_docker:
stage: build_containers
image: docker:19.03.12
services:
- docker:19.03.12-dind
before_script:
- cat /etc/os-release # "Alpine Linux v3.12"
- apk add git
- export LAST_RELEASE=`git ls-remote --tags --refs --sort="v:refname" $CI_PROJECT_URL.git | tail -n1 | sed 's/.*\///'`
- echo $LAST_RELEASE
script:
- cd Docker
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $CI_REGISTRY_IMAGE:$LAST_RELEASE .
- docker push $CI_REGISTRY_IMAGE:$LAST_RELEASE
only:
- tags
pages:
stage: deploy
image: python:3.7-alpine
......@@ -48,3 +67,4 @@ pages:
- public
only:
- master
FROM continuumio/miniconda3
ENV PATH=/opt/conda/bin/:${PATH}
SHELL [ "/bin/bash", "-c"]
RUN conda install git pip && \
pip --no-cache-dir install git+https://gitlab.in2p3.fr/escape2020/wp3/eossr
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment