From 56a93ead8c9d63ea9666fa00740008a77f10f155 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Fri, 28 Jul 2023 14:02:30 +0100 Subject: [PATCH] ci: updated the rules to only run on changes to a subset of files --- .gitlab-ci.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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