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

@ -8,12 +8,10 @@ my $main_bucket = "badhouseplants-minio:/badhouseplants-net-main";
chop($git_branch);
chop($git_commit_sha);
print "Creating a new hashed dir in the common bucket\n";
print `rclone copy -P static "$common_bucket/$git_commit_sha"`;
if ( $git_branch eq $main_branch) {
print "Syncing to the production bucket\n";
print `rclone copy -P static "$common_bucket/$git_commit_sha"`;
print `rclone sync -P "$common_bucket/$git_commit_sha" "$main_bucket/"`;
} else {
print "Creating a new hashed dir in the common bucket\n";
print `rclone copy -P static "$common_bucket/$git_commit_sha"`;
}