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

fix: wip new pipeline

parent 4bce6ddb
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ in ...@@ -39,7 +39,7 @@ in
echo_fail "Error: Could not get git log." echo_fail "Error: Could not get git log."
exit 1 exit 1
fi fi
set -x
${pkgs'.git}/bin/git fetch --prune --prune-tags ${pkgs'.git}/bin/git fetch --prune --prune-tags
echo_step "Bumping version" echo_step "Bumping version"
...@@ -63,7 +63,13 @@ in ...@@ -63,7 +63,13 @@ in
exit 1 exit 1
fi fi
${pkgs'.git}/bin/git tag -a $gitVersion -m"chore: bump version to $gitVersion" 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"
fi
${pkgs'.git}/bin/git tag -a "$gitVersion" -m"chore: bump version to $gitVersion"
${updateChangelogScript}/bin/update-changelog ${updateChangelogScript}/bin/update-changelog
cd $CI_PROJECT_DIR || exit 1 cd $CI_PROJECT_DIR || exit 1
...@@ -74,7 +80,7 @@ in ...@@ -74,7 +80,7 @@ in
${pkgs'.git}/bin/git commit -m "chore: release $gitVersion" CHANGELOG.md ./nix/config/release.nix package.json ${pkgs'.git}/bin/git commit -m "chore: release $gitVersion" CHANGELOG.md ./nix/config/release.nix package.json
${pkgs'.git}/bin/git tag -a $gitVersion -m"chore: bump version to $gitVersion" ${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 --no-pager log --decorate=short --pretty=oneline -n 5
${pkgs'.git}/bin/git remote set-url origin https://pad:''${GITLAB_TOKEN}@''${CI_REPOSITORY_URL#*@} ${pkgs'.git}/bin/git remote set-url origin https://pad:''${GITLAB_TOKEN}@''${CI_REPOSITORY_URL#*@}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment