Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Bob
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Bob
Commits
494971f9
Verified
Commit
494971f9
authored
1 year ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix: test scripts
parent
926f510c
No related branches found
Branches containing commit
Tags
0.4.15
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+0
-67
0 additions, 67 deletions
.gitlab-ci.yml
flake.nix
+4
-0
4 additions, 0 deletions
flake.nix
with
4 additions
and
67 deletions
.gitlab-ci.yml
deleted
100644 → 0
+
0
−
67
View file @
926f510c
image
:
docker-registry.schukai.com:443/nixos-ci-devenv:latest
#services:
# - docker:dind
variables
:
# The repo name as used in
# https://github.com/nix-community/NUR/blob/master/repos.json
NIXOS_VERSION
:
"
23.05"
NIXPKGS_ALLOW_UNFREE
:
"
1"
NIXPKGS_ALLOW_INSECURE
:
"
1"
# DOCKER_DRIVER: overlay2
GIT_DEPTH
:
10
stages
:
-
build
-
deploy
before_script
:
# - nix shell nixpkgs#coreutils-full -c mkdir -p /certs/client/
# - nix shell nixpkgs#coreutils-full -c ln -fs /etc/ssl/certs/ca-bundle.crt /certs/client/ca.pem
-
echo > .env-gitlab-ci
-
variables=("HOME=$HOME" "CI_COMMIT_REF_NAME=$CI_COMMIT_REF_NAME" "CI_REPOSITORY_URL=$CI_REPOSITORY_URL" "GITLAB_TOKEN=$GITLAB_TOKEN" "CI_JOB_TOKEN=$CI_JOB_TOKEN" "GITLAB_USER_EMAIL=$GITLAB_USER_EMAIL" "GITLAB_USER_NAME=\"$GITLAB_USER_NAME\"" "CI_REGISTRY_USER=$CI_REGISTRY_USER" "CI_PROJECT_ID=$CI_PROJECT_ID" "CI_PROJECT_DIR=$CI_PROJECT_DIR" "CI_API_V4_URL=$CI_API_V4_URL" "CI_PROJECT_NAME=$CI_PROJECT_NAME" "CI_COMMIT_SHORT_SHA=$CI_COMMIT_SHORT_SHA"); for var in "${variables[@]}"; do echo "$var" >> .env-gitlab-ci; done
-
cat .env-gitlab-ci
after_script
:
-
if [ -f .env-gitlab-ci ]; then rm .env-gitlab-ci; fi
build
:
stage
:
build
tags
:
-
nixos
script
:
-
devenv shell build-app
cache
:
-
key
:
nixos
paths
:
-
/nix/store
artifacts
:
paths
:
-
dist
deploy
:
stage
:
deploy
tags
:
-
nixos
script
:
-
devenv shell -c deploy-app
when
:
on_success
cache
:
-
key
:
nixos
paths
:
-
/nix/store
artifacts
:
paths
:
-
dist
This diff is collapsed.
Click to expand it.
flake.nix
+
4
−
0
View file @
494971f9
...
...
@@ -49,6 +49,8 @@
portAsString
=
toString
projectDefinition
.
k8s
.
port
;
in
{
packages
=
rec
{
default
=
self
.
packages
.
${
system
}
.
bob
;
...
...
@@ -176,6 +178,8 @@
};
flake
=
{
defaultPackage
=
self
.
packages
.
${
builtins
.
currentSystem
}
.
bob
;
};
};
...
...
This diff is collapsed.
Click to expand it.
Volker Schukai
@volker.schukai
mentioned in commit
1c1ffcd7
·
1 year ago
mentioned in commit
1c1ffcd7
mentioned in commit 1c1ffcd7a050f21227a9e4764c9b280345c50477
Toggle commit list
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