Add .gitlab-ci.yml

This commit is contained in:
yuri 2023-07-11 11:34:08 +02:00
parent 3eb9f986e0
commit e66505e3b0

30
.gitlab-ci.yml Normal file
View file

@ -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"