From e66505e3b05fd8dc6a1eab619ae1bfcc37b7b2af Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 11 Jul 2023 11:34:08 +0200 Subject: [PATCH] Add .gitlab-ci.yml --- .gitlab-ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..e83ee8c --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,30 @@ +default: + image: nixos/nix:2.16.1 + +stages: + - update_flake_lock + - build + - apply + - commit_flake + +update_flake_lock: + stage: update_flake_lock + script: + - nix flake update --extra-experimental-features nix-command --extra-experimental-features flakes + +build: + stage: build + script: + - nix-env --install colmena + - colmena build + +apply: + stage: apply + script: + - nix-env --install colmena + - colmena apply + +commit_flake: + stage: commit_flake + script: + - echo "commit_flake" \ No newline at end of file