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
Branches
Tags
No related merge requests found
...@@ -33,6 +33,8 @@ tests: ...@@ -33,6 +33,8 @@ tests:
- pnpm-lock.yaml - pnpm-lock.yaml
paths: paths:
- node_modules/ - node_modules/
rules:
- if: '$CI_PUSH_OPTION_CI_VARIABLE == null'
web-tests: web-tests:
stage: test stage: test
...@@ -51,7 +53,7 @@ web-tests: ...@@ -51,7 +53,7 @@ web-tests:
paths: paths:
- screenshot.png - screenshot.png
rules: rules:
- if: '$CI_COMMIT_TAG == null' - if: '$CI_PUSH_OPTION_CI_VARIABLE == null'
release: release:
stage: release stage: release
...@@ -61,7 +63,7 @@ release: ...@@ -61,7 +63,7 @@ release:
- nix develop .#gitlab --command release - nix develop .#gitlab --command release
when: on_success when: on_success
rules: rules:
- if: '$CI_COMMIT_TAG == null' - if: '$CI_PUSH_OPTION_CI_VARIABLE == null'
deploy: deploy:
stage: deploy stage: deploy
...@@ -71,6 +73,6 @@ deploy: ...@@ -71,6 +73,6 @@ deploy:
- nix develop .#gitlab --command build-and-publish - nix develop .#gitlab --command build-and-publish
when: on_success when: on_success
rules: 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 ...@@ -70,7 +70,7 @@ in
if ${pkgs'.git}/bin/git tag -l | grep -q "$gitVersion"; then if ${pkgs'.git}/bin/git tag -l | grep -q "$gitVersion"; then
echo_step "Tag $gitVersion existiert bereits. Lösche und setze den Tag neu." echo_step "Tag $gitVersion existiert bereits. Lösche und setze den Tag neu."
${pkgs'.git}/bin/git tag -d "$gitVersion" ${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 fi
${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"
...@@ -87,7 +87,7 @@ in ...@@ -87,7 +87,7 @@ in
${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
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." echo_fail "Error: Could not push git tag $gitVersion."
exit 1 exit 1
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment