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