Try using the \'app\' label in the cleanup job

This commit is contained in:
Nikolai Rodionov
2023-04-24 17:21:41 +02:00
parent 460d4fca68
commit 489e85904d
3 changed files with 10 additions and 6 deletions

View File

@ -26,7 +26,7 @@ chomp @builds_out;
# ---------------------------------------
# -- Get a list of all commits + 'latest'
# ---------------------------------------
my $commits = "argocd app list -o yaml -l application=badhouseplants | yq '.[].metadata.labels.commit_sha'";
my $commits = "argocd app list -o yaml -l app=badhouseplants | yq '.[].metadata.labels.commit_sha'";
my @commits_out = `$commits`;
chomp @commits_out;
push @commits_out, 'latest';