Commit cd17c0a4 authored by Patrick Godwin's avatar Patrick Godwin
Browse files

.gitlab-ci.yml: add conda deps stage/container

parent a913c2ec
Pipeline #203909 failed with stages
in 3 minutes and 34 seconds
......@@ -35,6 +35,7 @@ stages:
- level0
- level1
- level2
- deps
- test-gstlal
- test-inspiral
- test-burst
......@@ -108,7 +109,35 @@ level2:rpm:gstlal-burst:
- level0:rpm:gstlal
- level1:rpm:gstlal-ugly
# conda dev container
.dependencies: &dependencies
stage: deps
variables:
GIT_STRATEGY: fetch
IMAGE_TAG: $CI_REGISTRY_IMAGE/$CI_JOB_NAME:$CI_COMMIT_REF_NAME
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- |
cat <<EOF > Dockerfile
FROM igwn/base:conda
COPY gstlal-inspiral/share/conda/dev-environment.yml .
RUN conda config --set always_yes yes
RUN conda config --add channels conda-forge
RUN conda update -n base conda
RUN conda env update -n base -f dev-environment.yml
RUN conda install vim wget curl
RUN rm -f dev-environment.yml
ENTRYPOINT bash
EOF
- docker build -t $IMAGE_TAG .
- docker push $IMAGE_TAG
only:
changes:
- gstlal-inspiral/share/conda/dev-environment.yml
dependencies/conda:
<<: *dependencies
# test stages
test:gstlal:
image: containers.ligo.org/alexander.pace/gstlal-dev/gstlal-dev:el7
stage: test-gstlal
......
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