Commit 1de6da8b authored by Patrick Godwin's avatar Patrick Godwin
Browse files

.gitlab-ci.yml: move conda deps stage to beginning

parent 6582bb58
Pipeline #203917 failed with stages
in 8 seconds
......@@ -32,10 +32,10 @@ cache:
- ccache
stages:
- deps
- level0
- level1
- level2
- deps
- test-gstlal
- test-inspiral
- test-burst
......@@ -45,6 +45,34 @@ stages:
- nightly-pages
- verify
# 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
#
# build rpms
#
......@@ -109,34 +137,6 @@ 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
......
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