Skip to content
Snippets Groups Projects
Commit 5bb0f1f6 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Build the three grids as separate GitLab CI jobs

parent 456d415f
No related branches found
No related tags found
4 merge requests!140Merge staging into production,!122Merge develop into staging,!115Continuous deployment for the grid systems,!112Draft: Try having morph build everything it wants and then caching it
Pipeline #782 canceled
......@@ -20,7 +20,7 @@ unit-tests:
script:
- "nix-shell --run 'nix-build nixos/unit-tests.nix' && cat result"
morph-builds:
.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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment