diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1cef227..519b470 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 \ No newline at end of file + - main + changes: + - applications/**/* + - machines/**/* + - secrets/**/* + - flake.* + - .gitlab-ci.yml \ No newline at end of file