From d58b2fc0a6b0e3f9f46b89a14495f2a8343df949 Mon Sep 17 00:00:00 2001 From: Thilo Schwarz Date: Tue, 19 Aug 2025 11:39:34 +0200 Subject: [PATCH] Reorder GitLab CI steps for better configuration and clarity in the release stage --- .gitlab-ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b48885e..270815e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -78,13 +78,12 @@ perform_release: script: | apk add --no-cache git 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.email "${GITLAB_USEREMAIL}" export CI_REF_NAME=${CI_COMMIT_REF_NAME:-release} - 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" + git checkout -B ${CI_REF_NAME} # build versions CURRENT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)