From e1e5693a2a32b6bd1884002c91ec62c95e27fe55 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 15 Sep 2021 11:29:00 +0200 Subject: [PATCH] chore(gitlab-ci): ... --- .gitlab-ci.yml | 36 +++++++++++++++++------------------ .gitlab-ci/nix-bootstrap.conf | 4 ---- 2 files changed, 17 insertions(+), 23 deletions(-) delete mode 100644 .gitlab-ci/nix-bootstrap.conf diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 29ddb819e..941d3d6ca 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,12 +19,10 @@ stages: node dependencies: stage: frontend:build script: - - nix -L build -o node-dependencies .#uniworxNodeDependencies - - nix-store --export $(nix-store -qR node-dependencies) > node-dependencies.nar - before_script: &nix - - install -m 0644 .gitlab-ci/nix-bootstrap.conf /etc/nix/nix.conf - - nix-env -f '' -riA envsubst - - envsubst -i .gitlab-ci/nix.conf -o /etc/nix/nix.conf + - nix -L build -o result .#uniworxNodeDependencies + - nix-store --export $(nix-store -qR result) > node-dependencies.nar + before_script: &nix-before + - install -m 0644 .gitlab-ci/nix.conf /etc/nix/nix.conf - git config --global init.defaultBranch master - install -v -m 0700 -d ~/.ssh - install -v -T -m 0644 "${SSH_KNOWN_HOSTS}" ~/.ssh/known_hosts @@ -42,9 +40,9 @@ well known: stage: frontend:build script: - nix-store --import well-known.nar - before_script: *nix + - nix -L build -o result .#uniworxWellKnown + - nix-store --export $(nix-store -qR result) > well-known.nar + before_script: *nix-before needs: - job: node dependencies artifacts: true @@ -61,9 +59,9 @@ frontend: script: - nix-store --import frontend.nar - before_script: *nix + - nix -L build -o result .#uniworxFrontend + - nix-store --export $(nix-store -qR result) > frontend.nar + before_script: *nix-before needs: - job: node dependencies artifacts: true @@ -81,9 +79,9 @@ backend: stage: backend:build script: - nix-store --import