diff --git a/scripts/build.sh b/scripts/build.sh index 8c0e3a1d..bdb15e4c 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -125,12 +125,12 @@ mc config host add s3 https://s3.amazonaws.com $AWS_S3_ACCESS_KEY_ID $AWS_S3_SEC echo "Pushing to s3/flyio-wormhole-builds/$VERSION/" -mc mirror pkg/ s3/flyio-wormhole-builds/$VERSION +mc -q mirror --remove --overwrite pkg/ s3/flyio-wormhole-builds/$VERSION echo "Pushing to s3/flyio-wormhole-builds/$CHANNEL/" # also set the version as the latest # TODO: there must be a better way to copy/symlink objects in S3 instead of uploading again -mc mirror pkg/ s3/flyio-wormhole-builds/$CHANNEL +mc -q mirror --remove --overwrite pkg/ s3/flyio-wormhole-builds/$CHANNEL echo "Building and pushing to Docker Hub"