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

fix: update ci #11

parent 87db10e6
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@
rules:
- if: '$CI_COMMIT_TAG'
when: never
- if: '$CI_COMMIT_MESSAGE =~ /NOT_TAGIT/'
- if: '$CI_COMMIT_MESSAGE =~ /RELEASE_IT/'
when: never
- when: on_success
......@@ -36,11 +36,10 @@
tags:
- nixos
stage: release
#image:
# name: goreleaser/goreleaser
# entrypoint: [""]
only:
- tags
rules:
- if: '$CI_COMMIT_MESSAGE =~ /RELEASE_IT/'
when: on_success
- when: never
variables:
# Disable shallow cloning so that goreleaser can diff between tags to
GIT_DEPTH: 0
......
......@@ -145,7 +145,7 @@ tasks:
rules:
- if: '$CI_COMMIT_TAG'
when: never
- if: '$CI_COMMIT_MESSAGE =~ /NOT_TAGIT/'
- if: '$CI_COMMIT_MESSAGE =~ /RELEASE_IT/'
when: never
- when: on_success
......@@ -154,11 +154,10 @@ tasks:
tags:
- nixos
stage: release
#image:
# name: goreleaser/goreleaser
# entrypoint: [""]
only:
- tags
rules:
- if: '$CI_COMMIT_MESSAGE =~ /RELEASE_IT/'
when: on_success
- when: never
variables:
# Disable shallow cloning so that goreleaser can diff between tags to
GIT_DEPTH: 0
......@@ -321,11 +320,11 @@ in {
sed -i "s/version\s*=\s*\".*\"/version=\"''${NEWVERSION}\"/" ${config.devenv.root}/project.nix
${pkgs.git}/bin/git add ${config.devenv.root}/project.nix
${pkgs.git}/bin/git commit -m "chore: Bump version to ''${NEWVERSION} (NOT_TAGIT)"
${pkgs.git}/bin/git commit -m "chore: Bump version to ''${NEWVERSION} (RELEASE_IT)"
${pkgs.git}/bin/git log --decorate=short --pretty=oneline
${pkgs.git}/bin/git tag -a "''${NEWVERSION}" -m "chore: Release ''${NEWVERSION} (NOT_TAGIT)"
${pkgs.git}/bin/git tag -a "''${NEWVERSION}" -m "chore: Release ''${NEWVERSION} (RELEASE_IT)"
${pkgs.git}/bin/git push origin $CI_COMMIT_REF_NAME --tags
'';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment