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