Skip to content

Commit

Permalink
chore(releasing): Only delete old files for 0.X and 0.13.X artifacts
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Szwedko <jesse@szwedko.me>
  • Loading branch information
jszwedko committed Apr 21, 2021
1 parent 5d99673 commit 99bf217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release-s3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ elif [[ "$CHANNEL" == "latest" ]]; then
aws s3 cp "$td" "s3://packages.timber.io/vector/$i/" --recursive --sse --acl public-read
fi

if [[ "$i" != "latest" ]] ; then
if [[ "$i" == "${VERSION_MAJOR_X}" || "$i" == "${VERSION_MINOR_X}" ]] ; then
# Delete anything that isn't the current version
echo "Deleting old artifacts from s3://packages.timber.io/vector/$i/"
aws s3 rm "s3://packages.timber.io/vector/$i/" --recursive --exclude "*$VERSION_EXACT*"
Expand Down

0 comments on commit 99bf217

Please sign in to comment.