Reorder GitLab CI steps for better configuration and clarity in the release stage
This commit is contained in:
+3
-4
@@ -78,13 +78,12 @@ perform_release:
|
|||||||
script: |
|
script: |
|
||||||
apk add --no-cache git
|
apk add --no-cache git
|
||||||
cd ${GITLAB_CLONE_DIR}
|
cd ${GITLAB_CLONE_DIR}
|
||||||
|
# config auth
|
||||||
|
git remote set-url origin "https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/${CI_PROJECT_PATH}.git"
|
||||||
git config --global user.name "${GITLAB_USERNAME}"
|
git config --global user.name "${GITLAB_USERNAME}"
|
||||||
git config --global user.email "${GITLAB_USEREMAIL}"
|
git config --global user.email "${GITLAB_USEREMAIL}"
|
||||||
export CI_REF_NAME=${CI_COMMIT_REF_NAME:-release}
|
export CI_REF_NAME=${CI_COMMIT_REF_NAME:-release}
|
||||||
git checkout -B ${CI_REF_NAME}
|
git checkout -B ${CI_REF_NAME}
|
||||||
|
|
||||||
# config auth
|
|
||||||
git remote set-url origin "https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/${CI_PROJECT_PATH}.git"
|
|
||||||
|
|
||||||
# build versions
|
# build versions
|
||||||
CURRENT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
|
CURRENT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
|
||||||
|
|||||||
Reference in New Issue
Block a user