ci: updated the rules to only run on changes to a subset of files

This commit is contained in:
silver 2023-07-28 14:02:30 +01:00
parent 47a7a0a7fc
commit 56a93ead8c

View file

@ -45,6 +45,13 @@ build:
- git pull origin main
script:
- nix --experimental-features 'nix-command flakes' run nixpkgs#colmena -- build
only:
changes:
- applications/**/*
- machines/**/*
- secrets/**/*
- flake.*
- .gitlab-ci.yml
# every commit on main will build and deploy
deploy:
@ -65,4 +72,10 @@ deploy:
- nix --experimental-features 'nix-command flakes' run nixpkgs#colmena -- apply --on @active
only:
refs:
- main
- main
changes:
- applications/**/*
- machines/**/*
- secrets/**/*
- flake.*
- .gitlab-ci.yml