This commit is contained in:
Marc Beninca 2024-05-04 16:23:02 +02:00
parent 92710f97d0
commit b0e45d5ec3
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

8
cd.sh
View file

@ -42,8 +42,6 @@ cd_main () {
cd_set_environment_variables () { cd_set_environment_variables () {
cd_step "Set environment variables" cd_step "Set environment variables"
# #
[ "${CD_CA_1}" ] && CD_CA=true
#
case "$(cd_grep_os ID)" in case "$(cd_grep_os ID)" in
"almalinux") "almalinux")
CD_OS_ID="${CD_OS_ALMA}" CD_OS_ID="${CD_OS_ALMA}"
@ -149,6 +147,8 @@ Dir::Etc::SourceParts \"\";
;; ;;
*) cd_error_os "CD_OS_ID" ;; *) cd_error_os "CD_OS_ID" ;;
esac esac
# variables
[ "${CD_CA_1}" ] && CD_CA=true
# continuous integration platform # continuous integration platform
if [ "${GITHUB_ACTIONS}" ] ; then if [ "${GITHUB_ACTIONS}" ] ; then
# forgejo / gitea / github # forgejo / gitea / github
@ -175,7 +175,7 @@ Dir::Etc::SourceParts \"\";
CD_PROJECTS_URL="${CD_SERVER_URL}/${CD_PROJECTS_GROUP}" CD_PROJECTS_URL="${CD_SERVER_URL}/${CD_PROJECTS_GROUP}"
CD_PROJECT_URL="${CD_PROJECTS_URL}/${CD_PROJECT_NAME}" CD_PROJECT_URL="${CD_PROJECTS_URL}/${CD_PROJECT_NAME}"
# #
cd_echo "CD_CA" "CD_CA_ROOT" cd_echo "CD_CA_ROOT"
cd_split cd_split
cd_echo "CD_OS_ID" "CD_OS_VERSION" cd_echo "CD_OS_ID" "CD_OS_VERSION"
cd_split cd_split
@ -190,6 +190,8 @@ Dir::Etc::SourceParts \"\";
cd_split cd_split
cd_echo "CD_PYTHON_COMMAND" "CD_PYTHON_PACKAGE" "CD_PYTHON_PACKAGES" cd_echo "CD_PYTHON_COMMAND" "CD_PYTHON_PACKAGE" "CD_PYTHON_PACKAGES"
cd_split cd_split
cd_echo "CD_CA"
cd_split
cd_echo "CD_SERVER_URL" \ cd_echo "CD_SERVER_URL" \
"CD_PROJECTS_GROUP" "CD_PROJECT_NAME" "CD_PROJECT_BRANCH" "CD_PROJECTS_GROUP" "CD_PROJECT_NAME" "CD_PROJECT_BRANCH"
cd_split cd_split