Skip to content

Commit

Permalink
overwriting makes the most sense, removing not so much
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegn committed Jun 20, 2018
1 parent 13e725e commit 4d91008
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 -q mirror --remove --overwrite pkg/ s3/flyio-wormhole-builds/$VERSION
mc -q mirror --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 -q mirror --remove --overwrite pkg/ s3/flyio-wormhole-builds/$CHANNEL
mc -q mirror --overwrite pkg/ s3/flyio-wormhole-builds/$CHANNEL

echo "Building and pushing to Docker Hub"

Expand Down

0 comments on commit 4d91008

Please sign in to comment.