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

chore: ci

parent 474b968c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment