From a102db152b634eb3e483c2a724422ab8bbeb9468 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 3 May 2024 13:06:52 +0200 Subject: [PATCH] ci --- cd.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 #