Skip to content

Commit d4db488

Browse files
committed
Update ci_post_clone.sh
1 parent 85dd563 commit d4db488

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

ci_scripts/ci_post_clone.sh

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,13 @@
66
# Created by Vin Bui on 10/9/23.
77
#
88

9-
brew install awscli
9+
# Install Minio Client
10+
curl https://dl.min.io/client/mc/release/darwin-amd64/mc -o mc
11+
chmod +x mc
1012

11-
export AWS_ACCESS_KEY_ID="$SPACES_ACCESS_KEY_ID"
12-
export AWS_SECRET_ACCESS_KEY="$SPACES_SECRET_ACCESS_KEY"
13-
14-
aws s3 sync \
15-
s3://appdev-upload/ios-secrets/eatery-blue/ \
16-
"$CI_WORKSPACE/Eatery Blue/Supporting" \
17-
--endpoint-url=https://nyc3.digitaloceanspaces.com \
18-
--no-progress 2>&1 | grep -v "Is a directory"
13+
# Sync secrets from DigitalOcean Spaces
14+
./mc alias set my-space https://nyc3.digitaloceanspaces.com "$SPACES_ACCESS_KEY_ID" "$SPACES_SECRET_ACCESS_KEY"
15+
./mc mirror my-space/appdev-upload/ios-secrets/eatery-blue/ "$CI_PRIMARY_REPOSITORY_PATH/Eatery Blue/Supporting"
1916

2017
# Trust swiftlint
2118
defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES

0 commit comments

Comments
 (0)