diff --git a/gitlab/before_build.sh b/gitlab/before_build.sh index 4dcc7dd4bcd8d01a5b63ccd118e8528a3f692f2b..655ff4735f8a69509a92c240734bf0e570a21b61 100755 --- a/gitlab/before_build.sh +++ b/gitlab/before_build.sh @@ -28,7 +28,11 @@ ssl_verify: false #!final channels: #!final EOF -set_conda_channels ${VISIBILITY} ${CI_COMMIT_TAG} +if [[ "${STABLE}" == "true" ]]; then + set_conda_channels ${VISIBILITY} "stable" +else + set_conda_channels ${VISIBILITY} ${CI_COMMIT_TAG} +fi for k in "${CONDA_CHANNELS[@]}"; do echo " - ${DOCSERVER}/${k}" >> ${CONDARC} done