Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Monster
Manage
Activity
Members
Plan
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Javascript
Monster
Commits
4768b2d0
Verified
Commit
4768b2d0
authored
1 year ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
fix: wip new pipeline
parent
ff1da792
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
flake.nix
+53
-59
53 additions, 59 deletions
flake.nix
with
53 additions
and
59 deletions
flake.nix
+
53
−
59
View file @
4768b2d0
...
@@ -48,16 +48,14 @@
...
@@ -48,16 +48,14 @@
versionPath
versionPath
];
];
gitlabPackages
=
gitlabPackages
=
commonPackages
commonPackages
++
scriptPackages
++
scriptPackages
++
[
++
[
script-deploy
script-deploy
script-clean-up
script-clean-up
script-run-ci-tests
script-run-ci-tests
];
];
shellPackages
=
let
shellPackages
=
let
lib
=
pkgs
'
.
lib
;
lib
=
pkgs
'
.
lib
;
...
@@ -65,8 +63,6 @@
...
@@ -65,8 +63,6 @@
commonPackages
commonPackages
++
extendedPackages
++
extendedPackages
++
scriptPackages
;
++
scriptPackages
;
in
{
in
{
packages
=
rec
{
packages
=
rec
{
monster
=
pkgs
'
.
callPackage
./nix/packages/monster.nix
{
inherit
commonScript
;};
monster
=
pkgs
'
.
callPackage
./nix/packages/monster.nix
{
inherit
commonScript
;};
...
@@ -75,7 +71,6 @@
...
@@ -75,7 +71,6 @@
};
};
devShells
=
{
devShells
=
{
default
=
let
default
=
let
ciJobToken
=
builtins
.
getEnv
"CI_JOB_TOKEN"
;
ciJobToken
=
builtins
.
getEnv
"CI_JOB_TOKEN"
;
in
in
...
@@ -120,54 +115,53 @@
...
@@ -120,54 +115,53 @@
pkgs
'
.
mkShell
{
pkgs
'
.
mkShell
{
#nativeBuildInputs = gitlabPackages;
#nativeBuildInputs = gitlabPackages;
shellHook
=
''
shellHook
=
''
set -x
set -x
${
pkgs
'
.
coreutils
}
/bin/printenv
${
pkgs
'
.
coreutils
}
/bin/printenv
if [ -z "
$
GITLAB_TOKEN" ]; then
if [ -z "
''$
{
GITLAB_TOKEN
}
" ]; then
exit 1
#
exit 1
fi
fi
if [ -z "
''$
{CI_REPOSITORY_URL}" ]; then
if [ -z "
''$
{CI_REPOSITORY_URL}" ]; then
exit 1
#
exit 1
fi
fi
if [ -z "
''$
{CI_PROJECT_DIR}" ]; then
if [ -z "
''$
{CI_PROJECT_DIR}" ]; then
exit 1
#
exit 1
fi
fi
cd
''$
{CI_PROJECT_DIR} || exit 1
cd
''$
{CI_PROJECT_DIR} || exit 1
${
pkgs
'
.
git
}
/bin/git config --global user.email "
''$
{GITLAB_USER_EMAIL}"
${
pkgs
'
.
git
}
/bin/git config --global user.email "
''$
{GITLAB_USER_EMAIL}"
${
pkgs
'
.
git
}
/bin/git config --global user.name "
''$
{GITLAB_USER_NAME}"
${
pkgs
'
.
git
}
/bin/git config --global user.name "
''$
{GITLAB_USER_NAME}"
${
pkgs
'
.
git
}
/bin/git config --global credential.helper '!f() { echo "username=gitlab-ci-token"; echo "password=
''$
{CI_JOB_TOKEN}"; }; f'
${
pkgs
'
.
git
}
/bin/git config --global credential.helper '!f() { echo "username=gitlab-ci-token"; echo "password=
''$
{CI_JOB_TOKEN}"; }; f'
${
pkgs
'
.
git
}
/bin/git config --global pull.rebase true
${
pkgs
'
.
git
}
/bin/git config --global pull.rebase true
${
pkgs
'
.
git
}
/bin/git config --global http.sslVerify "false"
${
pkgs
'
.
git
}
/bin/git config --global http.sslVerify "false"
${
pkgs
'
.
git
}
/bin/git remote set-url origin https://pad:
''$
{GITLAB_TOKEN}@
''$
{CI_REPOSITORY_URL#*@}
${
pkgs
'
.
git
}
/bin/git remote set-url origin https://pad:
''$
{GITLAB_TOKEN}@
''$
{CI_REPOSITORY_URL#*@}
${
pkgs
'
.
git
}
/bin/git fetch --all --tags --unshallow
${
pkgs
'
.
git
}
/bin/git fetch --all --tags --unshallow
${
pkgs
'
.
git
}
/bin/git reset --hard origin/master
${
pkgs
'
.
git
}
/bin/git reset --hard origin/master
${
pkgs
'
.
git
}
/bin/git clean -fd
${
pkgs
'
.
git
}
/bin/git clean -fd
${
pkgs
'
.
git
}
/bin/git checkout $CI_COMMIT_REF_NAME
${
pkgs
'
.
git
}
/bin/git checkout $CI_COMMIT_REF_NAME
${
pkgs
'
.
git
}
/bin/git pull origin $CI_COMMIT_REF_NAME
${
pkgs
'
.
git
}
/bin/git pull origin $CI_COMMIT_REF_NAME
if !
${
pkgs
'
.
git
}
/bin/git --no-pager log --decorate=short --pretty=oneline -n 30
if !
${
pkgs
'
.
git
}
/bin/git --no-pager log --decorate=short --pretty=oneline -n 30
then
then
exit 1
exit 1
fi
fi
${
pkgs
'
.
git
}
/bin/git fetch --prune --prune-tags
${
pkgs
'
.
git
}
/bin/git fetch --prune --prune-tags
echo "YES!!!!"
echo "YES!!!!"
''
;
''
;
};
};
};
};
...
...
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