diff --git a/cd.sh b/cd.sh index 01a8ca8..f255508 100644 --- a/cd.sh +++ b/cd.sh @@ -75,20 +75,21 @@ local variable ;; *) cd_error_os "CD_OS_ID" ;; esac - # ci / github + # continuous integration platform if [ "${GITHUB_ACTIONS}" ] ; then + # forgejo / gitea / github CD_SERVER_URL="${GITHUB_SERVER_URL}" CD_PROJECTS_GROUP="$(dirname "${GITHUB_REPOSITORY}")" CD_PROJECT_NAME="$(basename "${GITHUB_REPOSITORY}")" CD_PROJECT_BRANCH="${GITHUB_REF_NAME}" - # ci / gitlab elif [ "${GITLAB_CI}" ] ; then + # gitlab CD_SERVER_URL="${CI_SERVER_URL}" CD_PROJECTS_GROUP="$(dirname "${CI_PROJECT_PATH}")" CD_PROJECT_NAME="$(basename "${CI_PROJECT_PATH}")" CD_PROJECT_BRANCH="${CI_COMMIT_BRANCH}" - # ci / none else + # unsupported cd_error_ci "ΓΈ" fi #