fix(script): Upload a media to Minio even if a commit is pushed to main

This commit is contained in:
Nikolai Rodionov 2023-04-17 17:13:42 +02:00
parent 5c7d7e065a
commit 542f4cc562
No known key found for this signature in database
GPG Key ID: 19DB54039EBF8F10

View File

@ -10,6 +10,7 @@ chop($git_commit_sha);
if ( $git_branch eq $main_branch) { if ( $git_branch eq $main_branch) {
print "Syncing to the production bucket\n"; 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/"`; print `rclone sync -P "$common_bucket/$git_commit_sha" "$main_bucket/"`;
} else { } else {
print "Creating a new hashed dir in the common bucket\n"; print "Creating a new hashed dir in the common bucket\n";