Skip to content

Commit 3ae624b

Browse files
Merge pull request #1680 from RedisInsight/build/sha256
#RI-3999 - Automatically generate SHA256 for release builds
2 parents 3215513 + 5b32051 commit 3ae624b

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.circleci/config.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,8 +725,11 @@ jobs:
725725
name: publish
726726
command: |
727727
rm release/._* ||:
728+
chmod +x .circleci/redisstack/sum_sha256.sh
729+
.circleci/redisstack/sum_sha256.sh
728730
applicationVersion=$(jq -r '.version' redisinsight/package.json)
729-
aws s3 cp release/ s3://${AWS_BUCKET_NAME_TEST}/public/rs-ri-builds/${CIRCLE_BUILD_NUM} --recursive --exclude "*.json"
731+
732+
aws s3 cp release/ s3://${AWS_BUCKET_NAME_TEST}/public/rs-ri-builds/${CIRCLE_BUILD_NUM} --recursive
730733
731734
release-aws-private:
732735
executor: linux-executor
@@ -744,9 +747,11 @@ jobs:
744747
- run:
745748
name: publish
746749
command: |
750+
chmod +x .circleci/redisstack/sum_sha256.sh
751+
.circleci/redisstack/sum_sha256.sh
747752
applicationVersion=$(jq -r '.version' redisinsight/package.json)
748753
749-
aws s3 cp release/ s3://${AWS_BUCKET_NAME}/private/${applicationVersion} --recursive --exclude "*.json"
754+
aws s3 cp release/ s3://${AWS_BUCKET_NAME}/private/${applicationVersion} --recursive
750755
751756
publish-prod-aws:
752757
executor: linux-executor

.circleci/redisstack/sum_sha256.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
set -e
3+
4+
cd ./release/redisstack
5+
6+
for f in *.tar.gz; do
7+
sha256sum "$f" > "$f.sha256"
8+
done

0 commit comments

Comments
 (0)