Skip to content
Snippets Groups Projects

fix: remove DEPLOY_TOKEN support

Open Wouter Deconinck requested to merge rm-deploy-token into master
1 file
+ 1
8
Compare changes
  • Side-by-side
  • Inline
+ 1
8
@@ -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
Loading