Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PrivateStorageio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
PrivateStorage
PrivateStorageio
Commits
5bb0f1f6
Commit
5bb0f1f6
authored
3 years ago
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
Build the three grids as separate GitLab CI jobs
parent
456d415f
No related branches found
No related tags found
4 merge requests
!140
Merge staging into production
,
!122
Merge develop into staging
,
!115
Continuous deployment for the grid systems
,
!112
Draft: Try having morph build everything it wants and then caching it
Pipeline
#782
canceled
3 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+26
-7
26 additions, 7 deletions
.gitlab-ci.yml
with
26 additions
and
7 deletions
.gitlab-ci.yml
+
26
−
7
View file @
5bb0f1f6
...
...
@@ -20,7 +20,7 @@ unit-tests:
script
:
-
"
nix-shell
--run
'nix-build
nixos/unit-tests.nix'
&&
cat
result"
morph-build
s
:
.
morph-build
:
&MORPH_BUILD
tags
:
# Run this job in a Docker container so that it won't have the system
# /nix/store so that it has to build everything. This is necessary so
...
...
@@ -36,7 +36,7 @@ morph-builds:
image
:
"
nixos/nix:latest"
stage
:
"
test"
variables
:
variables
:
&MORPH_BUILD_VARIABLES
# CACHIX_AUTH_TOKEN, which lets us push to cachix, is supplied by GitLab
# thanks to project-level configuration.
CACHIX_NAME
:
"
privatestorage-opensource"
...
...
@@ -49,16 +49,35 @@ morph-builds:
script
:
-
|
nix-shell --command '
for grid in morph/grid/*/grid.nix; do
morph build "${grid}"
done
'
# GRID is set in one of the "instantiations" of this job template.
nix-shell --command "morph build morph/grid/${GRID}/grid.nix"
after_script
:
-
|
bash -c "comm -13 <(sort /tmp/store-path-pre-build | grep -v '\.drv$') <(nix path-info --all | grep -v '\.drv$' | sort) | cachix push $CACHIX_NAME"
morph-build-localdev
:
<<
:
*MORPH_BUILD
variables
:
<<
:
*MORPH_BUILD_VARIABLES
GRID
:
"
local"
morph-build-testing
:
<<
:
*MORPH_BUILD
variables
:
<<
:
*MORPH_BUILD_VARIABLES
GRID
:
"
testing"
morph-build-production
:
<<
:
*MORPH_BUILD
variables
:
<<
:
*MORPH_BUILD_VARIABLES
GRID
:
"
production"
vulnerability-scan
:
stage
:
"
test"
script
:
...
...
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