diff --git a/.gitlab-ci.yaml b/.gitlab-ci.yaml index e88d621f210edd8fc094a72ad27c6483077ad5ab..4ddf72a1847de964c1f5c9fe579dc9943f62a756 100644 --- a/.gitlab-ci.yaml +++ b/.gitlab-ci.yaml @@ -28,12 +28,12 @@ before_script: after_script: - if [ -f .env-gitlab-ci ]; then rm .env-gitlab-ci; fi -build: +test: stage: build tags: - nixos script: - - devenv shell build-app + - devenv shell test-lib cache: - key: nixos @@ -49,7 +49,7 @@ deploy: tags: - nixos script: - - devenv shell -c deploy-app + - devenv shell -c deploy-lib when: on_success diff --git a/devenv.nix b/devenv.nix index cef457e62cf8fabfd66ff7e8895df4dde7164f9c..d8692f7dcc4847d0947c3206c3406402a98fe03e 100644 --- a/devenv.nix +++ b/devenv.nix @@ -47,7 +47,7 @@ # This script is executed when the app is built # You can use it to build the app - scripts.build-app.exec = '' + scripts.test-lib.exec = '' #!${pkgs.bash}/bin/bash #set -euo pipefail set -x @@ -76,7 +76,7 @@ task test # This scritp is used to deploy the app to the gitlab registry # It is used by the gitlab-ci.yml file # The environment variables are set in the gitlab project settings - scripts.deploy-app.exec = '' + scripts.deploy-lib.exec = '' #!${pkgs.bash}/bin/bash PATH="''${PATH}":${pkgs.coreutils}/bin @@ -149,7 +149,7 @@ fi git --no-pager log --decorate=short --pretty=oneline gitVersion=v$(version predict) - +git tag -a $gitVersion git push -o ci.skip origin ''${CI_COMMIT_REF_NAME} --tags