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