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 @@ ...@@ -27,7 +27,7 @@
rules: rules:
- if: '$CI_COMMIT_TAG' - if: '$CI_COMMIT_TAG'
when: never when: never
- if: '$CI_COMMIT_MESSAGE =~ /NOT_TAGIT/' - if: '$CI_COMMIT_MESSAGE =~ /RELEASE_IT/'
when: never when: never
- when: on_success - when: on_success
...@@ -36,11 +36,10 @@ ...@@ -36,11 +36,10 @@
tags: tags:
- nixos - nixos
stage: release stage: release
#image: rules:
# name: goreleaser/goreleaser - if: '$CI_COMMIT_MESSAGE =~ /RELEASE_IT/'
# entrypoint: [""] when: on_success
only: - when: never
- tags
variables: variables:
# Disable shallow cloning so that goreleaser can diff between tags to # Disable shallow cloning so that goreleaser can diff between tags to
GIT_DEPTH: 0 GIT_DEPTH: 0
......
...@@ -145,7 +145,7 @@ tasks: ...@@ -145,7 +145,7 @@ tasks:
rules: rules:
- if: '$CI_COMMIT_TAG' - if: '$CI_COMMIT_TAG'
when: never when: never
- if: '$CI_COMMIT_MESSAGE =~ /NOT_TAGIT/' - if: '$CI_COMMIT_MESSAGE =~ /RELEASE_IT/'
when: never when: never
- when: on_success - when: on_success
...@@ -154,11 +154,10 @@ tasks: ...@@ -154,11 +154,10 @@ tasks:
tags: tags:
- nixos - nixos
stage: release stage: release
#image: rules:
# name: goreleaser/goreleaser - if: '$CI_COMMIT_MESSAGE =~ /RELEASE_IT/'
# entrypoint: [""] when: on_success
only: - when: never
- tags
variables: variables:
# Disable shallow cloning so that goreleaser can diff between tags to # Disable shallow cloning so that goreleaser can diff between tags to
GIT_DEPTH: 0 GIT_DEPTH: 0
...@@ -321,11 +320,11 @@ in { ...@@ -321,11 +320,11 @@ in {
sed -i "s/version\s*=\s*\".*\"/version=\"''${NEWVERSION}\"/" ${config.devenv.root}/project.nix 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 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 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 ${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