Skip to content
Snippets Groups Projects
Commit 98156c6b authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

fix: remove DEPLOY_TOKEN support

parent 743ccd6b
No related tags found
1 merge request!71fix: remove DEPLOY_TOKEN support
...@@ -34,14 +34,7 @@ if [ -d "${DETECTOR}" ]; then ...@@ -34,14 +34,7 @@ if [ -d "${DETECTOR}" ]; then
mv "${DETECTOR}" "$(mktemp)-${DETECTOR}" mv "${DETECTOR}" "$(mktemp)-${DETECTOR}"
fi fi
echo "Fetching ${DETECTOR}" echo "Fetching ${DETECTOR}"
if [ -n "${DETECTOR_DEPLOY_TOKEN_USERNAME:-}" -a -n "${DETECTOR_DEPLOY_TOKEN_PASSWORD:-}" ]; then git clone -b ${DETECTOR_VERSION} --depth 1 ${DETECTOR_REPOSITORYURL:-https://github.com/eic/${DETECTOR}.git} ${DETECTOR}
DEPLOY_TOKEN="${DETECTOR_DEPLOY_TOKEN_USERNAME}:${DETECTOR_DEPLOY_TOKEN_PASSWORD}@"
echo "Deploy token for ${DETECTOR_DEPLOY_TOKEN_USERNAME} is masked in the next line."
else
DEPLOY_TOKEN=""
fi
echo "git clone -b ${DETECTOR_VERSION} --depth 1 ${DETECTOR_REPOSITORYURL:-https://eicweb.phy.anl.gov/EIC/detectors/${DETECTOR}.git} ${DETECTOR}"
git clone -b ${DETECTOR_VERSION} --depth 1 ${DETECTOR_REPOSITORYURL:-https://${DEPLOY_TOKEN}eicweb.phy.anl.gov/EIC/detectors/${DETECTOR}.git} ${DETECTOR}
if [ -f "${DETECTOR}/requirements.txt" ] ; then if [ -f "${DETECTOR}/requirements.txt" ] ; then
python -m pip install -r ${DETECTOR}/requirements.txt python -m pip install -r ${DETECTOR}/requirements.txt
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment