ci: updated the rules to only run on changes to a subset of files
This commit is contained in:
parent
47a7a0a7fc
commit
56a93ead8c
1 changed files with 14 additions and 1 deletions
|
@ -45,6 +45,13 @@ build:
|
||||||
- git pull origin main
|
- git pull origin main
|
||||||
script:
|
script:
|
||||||
- nix --experimental-features 'nix-command flakes' run nixpkgs#colmena -- build
|
- 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
|
# every commit on main will build and deploy
|
||||||
deploy:
|
deploy:
|
||||||
|
@ -66,3 +73,9 @@ deploy:
|
||||||
only:
|
only:
|
||||||
refs:
|
refs:
|
||||||
- main
|
- main
|
||||||
|
changes:
|
||||||
|
- applications/**/*
|
||||||
|
- machines/**/*
|
||||||
|
- secrets/**/*
|
||||||
|
- flake.*
|
||||||
|
- .gitlab-ci.yml
|
Loading…
Reference in a new issue