build: Use a separate pipeline for helm chart

This commit is contained in:
Nikolai Rodionov 2023-03-17 15:59:23 +01:00 committed by Nikolai Rodionov
parent a595adc7ef
commit 8c646a8a22

View File

@ -41,10 +41,10 @@ chomp @dirs_out;
# -- And remove obsolete imgages from # -- And remove obsolete imgages from
# -- registry # -- registry
# --------------------------------------- # ---------------------------------------
print "Cleaning up the container registry"; print "Cleaning up the container registry\n";
foreach my $line (@builds_out) foreach my $line (@builds_out)
{ {
print "Checking if $line is in @commits_out"; print "Checking if $line is in @commits_out\n\n";
if ( ! grep( /^$line$/, @commits_out ) ) { if ( ! grep( /^$line$/, @commits_out ) ) {
my $cmd = "curl -X 'DELETE' -s \"$gitea_api/$line\" -H 'accept: application/json' -u $gitea_user:$gitea_token || true"; my $cmd = "curl -X 'DELETE' -s \"$gitea_api/$line\" -H 'accept: application/json' -u $gitea_user:$gitea_token || true";
print "Removing ${line}\n\n"; print "Removing ${line}\n\n";
@ -53,10 +53,10 @@ foreach my $line (@builds_out)
} }
} }
print "Cleaning up Minio"; print "Cleaning up Minio\n";
foreach my $line (@dirs_out) foreach my $line (@dirs_out)
{ {
print "Checking if $line is in @commits_out"; print "Checking if $line is in @commits_out\n\n";
if ( ! grep( /^$line$/, @commits_out ) ) { if ( ! grep( /^$line$/, @commits_out ) ) {
my $cmd = "rclone purge badhouseplants-minio:/badhouseplants-net/$line"; my $cmd = "rclone purge badhouseplants-minio:/badhouseplants-net/$line";
print "Removing ${line}\n\n"; print "Removing ${line}\n\n";