Skip to content
Snippets Groups Projects
Verified Commit 5eb4f53a authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: wip new pipeline

parent 8298608d
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,10 @@ in
cd $CI_PROJECT_DIR || exit 1
${pkgs'.git}/bin/git remote set-url origin https://''${CI_REPOSITORY_URL#*@}
#### ${pkgs'.git}/bin/git remote set-url origin https://''${CI_REPOSITORY_URL#*@}
echo_step "Set git remote url to https://pad:secret@''${CI_REPOSITORY_URL#*@}"
${pkgs'.git}/bin/git remote set-url origin https://pad:''${GITLAB_TOKEN}@''${CI_REPOSITORY_URL#*@}
${pkgs'.git}/bin/git fetch --all --tags --unshallow
${pkgs'.git}/bin/git reset --hard origin/master
......@@ -51,6 +54,7 @@ in
fi
echo_step "Write project version"
### marker
export VERSION=$gitVersion
export COMMIT="$CI_COMMIT_SHA"
......@@ -66,7 +70,7 @@ in
if ${pkgs'.git}/bin/git tag -l | grep -q "$gitVersion"; then
echo_step "Tag $gitVersion existiert bereits. Lösche und setze den Tag neu."
${pkgs'.git}/bin/git tag -d "$gitVersion"
${pkgs'.git}/bin/git push origin --delete "$gitVersion"
${pkgs'.git}/bin/git push -o ci.skip origin --delete "$gitVersion"
fi
${pkgs'.git}/bin/git tag -a "$gitVersion" -m"chore: bump version to $gitVersion"
......@@ -83,7 +87,6 @@ in
${pkgs'.git}/bin/git tag -a "$gitVersion" -m"chore: bump version to $gitVersion"
${pkgs'.git}/bin/git --no-pager log --decorate=short --pretty=oneline -n 5
${pkgs'.git}/bin/git remote set-url origin https://pad:''${GITLAB_TOKEN}@''${CI_REPOSITORY_URL#*@}
if ! ${pkgs'.git}/bin/git push origin "$CI_COMMIT_REF_NAME" --tags ; then
echo_fail "Error: Could not push git tag $gitVersion."
exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment