Try using the \'app\' label in the cleanup job
This commit is contained in:
@ -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"`;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user