From 22bc29db19dbaac7842c569734e359cf46b2a68b Mon Sep 17 00:00:00 2001
From: Update Bot <update-bot@private.storage>
Date: Fri, 22 Jul 2022 13:06:18 -0400
Subject: [PATCH] There is no such thing as a default stage

So expand it ourselves
---
 .gitlab-ci.yml | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5162b482..eb47e650 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -28,7 +28,6 @@ default:
   tags:
     - "nixos"
     - "shell"
-  stage: "build"
 
 variables:
   # https://docs.gitlab.com/ee/ci/runners/configure_runners.html#job-stages-attempts
@@ -36,6 +35,7 @@ variables:
 
 docs:
   <<: *RUN_ON_MERGE_REQUEST
+  stage: "build"
   script:
     - "nix-build --attr docs --out-link result-docs"
     # GitLab wants to lchown artifacts.  It can't do that to store paths.  Get
@@ -48,14 +48,14 @@ docs:
 
 unit-tests:
   <<: *RUN_ON_MERGE_REQUEST
+  stage: "build"
   script:
     - "nix-build --attr unit-tests && cat result"
 
 .morph-build: &MORPH_BUILD
   <<: *RUN_ON_MERGE_REQUEST
-
   timeout: "3 hours"
-
+  stage: "build"
   script:
     - |
       # GRID is set in one of the "instantiations" of this job template.
@@ -87,6 +87,7 @@ morph-build-production:
 
 vulnerability-scan:
   <<: *RUN_ON_MERGE_REQUEST
+  stage: "build"
   script:
     - "ci-tools/vulnerability-scan security-report.json"
     - "ci-tools/count-vulnerabilities <security-report.json"
@@ -99,11 +100,13 @@ vulnerability-scan:
 system-tests:
   <<: *RUN_ON_MERGE_REQUEST
   timeout: "3 hours"
+  stage: "build"
   script:
     - "nix-build --attr system-tests"
 
 # A template for a job that can update one of the grids.
 .update-grid: &UPDATE_GRID
+  stage: "deploy"
   script: |
     env --ignore-environment - \
       NIX_PATH="$NIX_PATH" \
-- 
GitLab