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