Skip to content

Commit 8b220e5

Browse files
author
Artem
committed
remove old artifacts before copy new ones
Thanks Egor for pointing to it
1 parent 789ef8d commit 8b220e5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.circleci/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,12 @@ jobs:
778778
- run:
779779
name: Publish AWS S3
780780
command: |
781+
# remove previous build from the latest directory /public/latest
782+
aws s3 rm s3://${AWS_BUCKET_NAME}/${downloadLatestFolderPath} --recursive
783+
784+
# remove previous build from the upgrade directory /public/upgrades
785+
aws s3 rm s3://${AWS_BUCKET_NAME}/${upgradeLatestFolderPath} --recursive
786+
781787
# copy current version apps for download to /public/latest
782788
aws s3 cp s3://${AWS_BUCKET_NAME}/private/${applicationVersion}/ \
783789
s3://${AWS_BUCKET_NAME}/${downloadLatestFolderPath} --recursive --exclude "*.zip"

0 commit comments

Comments
 (0)