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
d936bde0
Verified
Commit
d936bde0
authored
6 months ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
chore: change gitlab-ci script
parent
4836c9d1
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
.gitlab-ci.yml
+22
-38
22 additions, 38 deletions
.gitlab-ci.yml
with
22 additions
and
38 deletions
.gitlab-ci.yml
+
22
−
38
View file @
d936bde0
# THIS FILE IS AUTOGENERATED BY THE DEVENVSHELL
# DO NOT EDIT THIS FILE MANUALLY
# INSTEAD EDIT THE DEVENVSHELL CONFIGURATION FILE devenv.nix
# AND OPEN A SHELL WITH THE COMMAND devenv shell
#
image
:
docker-registry.schukai.com:443/nixos-ci-devenv:latest
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"
GIT_DEPTH
:
10
GIT_SUBMODULE_STRATEGY
:
normal
GIT_SUBMODULE_DEPTH
:
1
stages
:
-
test
-
deploy
-
release
before_script
:
-
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
-
git config --global user.email "${GITLAB_USER_EMAIL}"
-
git config --global user.name "${GITLAB_USER_NAME:-"Gitlab CI"}"
-
git config --global credential.helper '!f() { echo "username=gitlab-ci-token"; echo "password=${CI_JOB_TOKEN}"; }; f'
-
git config --global pull.rebase
true
-
git config --global http.sslVerify "false"
after_script
:
-
if [ -f .env-gitlab-ci ]; then rm .env-gitlab-ci; fi
-
nix develop .#gitlab --command clean-up
test
:
test
s
:
stage
:
test
tags
:
-
nixos
-
nixos
-gen3
script
:
-
devenv shell test-lib
cache
:
-
key
:
nixos
paths
:
-
/nix/store
-
nix develop .#gitlab --command run-ci-tests
artifacts
:
paths
:
-
dist
-
last-phpunit-result.xml
deploy
:
stage
:
deploy
release
:
stage
:
release
tags
:
-
nixos
-
nixos
-gen3
script
:
-
devenv shell -c deploy-lib
-
nix develop .#gitlab --command release
when
:
on_success
cache
:
-
key
:
nixos
paths
:
-
/nix/store
rules
:
-
if
:
$CI_COMMIT_BRANCH == "master"
\ No newline at end of file
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