From 5d65d1042d58bc5cd1dfbcadf76d5600a87a9990 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Mon, 24 Apr 2023 17:09:23 +0200 Subject: [PATCH] Cleanup should remove everyting that is not used --- scripts/cleanup.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/cleanup.pl b/scripts/cleanup.pl index a08ee93..29d4c81 100755 --- a/scripts/cleanup.pl +++ b/scripts/cleanup.pl @@ -26,7 +26,7 @@ chomp @builds_out; # --------------------------------------- # -- Get a list of all commits + 'latest' # --------------------------------------- -my $commits = "git fetch && git log --format=format:%H --all"; +my $commits = "argocd app list -o yaml -l application=badhouseplants | yq '.[].metadata.labels.commit_sha'"; my @commits_out = `$commits`; chomp @commits_out; push @commits_out, 'latest';