fix(script): Upload a media to Minio even if a commit is pushed to main
This commit is contained in:
parent
5c7d7e065a
commit
542f4cc562
@ -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";
|
||||||
|
Reference in New Issue
Block a user