Skip to content

CircleCI: deployment fixes #604

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ commands:
- run:
name: Deploy to S3
command: |
du -ah --apparent-size artifacts/*
aws s3 cp artifacts/ s3://redismodules/$PACKAGE_NAME/ --acl public-read --recursive --exclude "*" --include "*.zip" --include "*.tgz"

jobs:
Expand Down Expand Up @@ -300,6 +301,7 @@ jobs:
name: Deploy to S3
command: |
cd "workspace/artifacts/<<parameters.location>>"
du -ah --apparent-size *
for f in *.zip snapshot/*.tgz; do
aws s3 cp $f s3://redismodules/$PACKAGE_NAME/<<parameters.location>>/ --acl public-read
done
Expand All @@ -314,9 +316,12 @@ jobs:
name: Deploy Snapshots to S3
command: |
cd workspace/artifacts
for f in snapshots-*.tar; do
for f in snapshots*.tar; do
echo "Extracting $f ..."
tar xf $f
done
echo "... done."
du -ah --apparent-size *
cd snapshots
for f in *.zip *.tgz; do
aws s3 cp --no-progress $f s3://redismodules/$PACKAGE_NAME/snapshots/ --acl public-read
Expand All @@ -332,6 +337,7 @@ jobs:
name: Deploy Releases to S3
command: |
cd workspace/artifacts
du -ah --apparent-size *
for f in *.zip *.tgz; do
aws s3 cp --no-progress $f s3://redismodules/$PACKAGE_NAME/ --acl public-read
done
Expand Down
4 changes: 2 additions & 2 deletions opt/build/docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ INT_BRANCHES=1.2

REDIS_VER:=6.0.9

ART_DIR=$(ROOT)/bin/artifacts
ART_INT_DIR=/var/opt/redislabs/artifacts
export ART_DIR=$(ROOT)/bin/artifacts
export ART_INT_DIR=/var/opt/redislabs/artifacts

#----------------------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion opt/readies