From 7ec33fdce2e2d976efbfd8dca60f00f49b198ac2 Mon Sep 17 00:00:00 2001
From: David Hoese <david.hoese@ssec.wisc.edu>
Date: Tue, 1 Jul 2025 13:38:32 -0500
Subject: [PATCH] Use default conda environment location in CI

---
 ci/build.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/ci/build.sh b/ci/build.sh
index 4a5c1d45..be7d050e 100755
--- a/ci/build.sh
+++ b/ci/build.sh
@@ -22,8 +22,10 @@ if [[ -z "$METOBS_SITE_DEST" ]]; then
 fi
 
 # create or update the existing environment to the newest pelican version
-conda env update -p "${PWD}/rain_site_env" -f "${SCRIPT_DIR}/build_environment.yml"
-conda activate "${PWD}/rain_site_env"
+# Environments should be created as gitlab-runner user and placed in
+# /home/gitlab-runner/.conda/envs/<env name> by default
+conda env update -n "rain_site_env" -f "${SCRIPT_DIR}/build_environment.yml"
+conda activate "rain_site_env"
 make clean
 make publish
 echo $PWD
-- 
GitLab