fix(script): Upload a media to Minio even if a commit is pushed to `main`
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Nikolai Rodionov 2023-04-17 17:13:42 +02:00
parent 5c7d7e065a
commit 542f4cc562
Signed by: allanger
GPG Key ID: 19DB54039EBF8F10
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@ chop($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";