Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Configuration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Go
Application
Configuration
Commits
2abf8be6
Verified
Commit
2abf8be6
authored
1 year ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
chore: ci
parent
474b968c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yaml
+3
-3
3 additions, 3 deletions
.gitlab-ci.yaml
devenv.nix
+3
-3
3 additions, 3 deletions
devenv.nix
with
6 additions
and
6 deletions
.gitlab-ci.yaml
+
3
−
3
View file @
2abf8be6
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
devenv.nix
+
3
−
3
View file @
2abf8be6
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment