projects_group
Some checks failed
/ job (push) Failing after 6s

This commit is contained in:
Marc Beninca 2024-04-27 01:43:14 +02:00
parent 6e939f50f1
commit db411d73a5
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

11
cd.sh
View file

@ -39,6 +39,17 @@ else
echo 'CD_PROJECT_NAME' echo 'CD_PROJECT_NAME'
exit 3 exit 3
fi fi
# projects / group
[ "${CI_PROJECT_PATH}" ] \
&& CD_PROJECTS_GROUP="$(dirname "${CI_PROJECT_PATH}")"
[ "${GITHUB_REPOSITORY}" ] \
&& CD_PROJECTS_GROUP="$(dirname "${GITHUB_REPOSITORY}")"
if [ "${CD_PROJECTS_GROUP}" ] ; then
echo "CD_PROJECTS_GROUP = ${CD_PROJECTS_GROUP}"
else
echo 'CD_PROJECTS_GROUP'
exit 3
fi
# #
[ "${CI_SERVER_URL}" ] && CD_REPOSITORIES_URL="${CI_SERVER_URL}" [ "${CI_SERVER_URL}" ] && CD_REPOSITORIES_URL="${CI_SERVER_URL}"
[ "${GITHUB_SERVER_URL}" ] && CD_REPOSITORIES_URL="${GITHUB_SERVER_URL}" [ "${GITHUB_SERVER_URL}" ] && CD_REPOSITORIES_URL="${GITHUB_SERVER_URL}"