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

fix: wip new pipeline

parent cf403dd7
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,8 @@ tests:
- pnpm-lock.yaml
paths:
- node_modules/
rules:
- if: '$CI_PUSH_OPTION_CI_VARIABLE == null'
web-tests:
stage: test
......@@ -51,7 +53,7 @@ web-tests:
paths:
- screenshot.png
rules:
- if: '$CI_COMMIT_TAG == null'
- if: '$CI_PUSH_OPTION_CI_VARIABLE == null'
release:
stage: release
......@@ -61,8 +63,8 @@ release:
- nix develop .#gitlab --command release
when: on_success
rules:
- if: '$CI_COMMIT_TAG == null'
- if: '$CI_PUSH_OPTION_CI_VARIABLE == null'
deploy:
stage: deploy
tags:
......@@ -71,6 +73,6 @@ deploy:
- nix develop .#gitlab --command build-and-publish
when: on_success
rules:
- if: '$CI_COMMIT_TAG != null'
- if: '$CI_PUSH_OPTION_CI_VARIABLE'
when: always
\ No newline at end of file
......@@ -70,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 -o ci.skip origin --delete "$gitVersion"
${pkgs'.git}/bin/git push --push-option= ci.skip origin --delete "$gitVersion"
fi
${pkgs'.git}/bin/git tag -a "$gitVersion" -m"chore: bump version to $gitVersion"
......@@ -87,10 +87,10 @@ 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
if ! ${pkgs'.git}/bin/git push origin "$CI_COMMIT_REF_NAME" --tags ; then
if ! ${pkgs'.git}/bin/git push --push-option=ci.variable="DEPLOY_VERSION=$gitVersion" origin "$CI_COMMIT_REF_NAME" --tags ; then
echo_fail "Error: Could not push git tag $gitVersion."
exit 1
fi
fi
echo_ok "done"
''
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment