Skip to content

Commit

Permalink
Merge pull request #6 from lurcio/remove-hardcoded-bucket-names
Browse files Browse the repository at this point in the history
Remove hardcoded bucket names
  • Loading branch information
jkmassel authored Aug 23, 2021
2 parents 5173201 + 3a0c721 commit e63eb2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/restore_cache
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if aws s3api head-object --bucket "$CACHE_BUCKET_NAME" --key "$CACHE_KEY" > /dev
echo "Restoring cache entry $CACHE_KEY"

echo " Downloading"
aws s3 cp "s3://a8c-ci-cache/$CACHE_KEY" "$CACHE_KEY" --quiet
aws s3 cp "s3://$CACHE_BUCKET_NAME/$CACHE_KEY" "$CACHE_KEY" --quiet

echo " Decompressing"
tar -xf "$CACHE_KEY"
Expand Down
2 changes: 1 addition & 1 deletion bin/save_cache
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ echo "Using $CACHE_BUCKET_NAME as cache bucket"
SHOULD_FORCE=${3-false}
if [[ "$SHOULD_FORCE" == '--force' ]]; then
echo "Deleting the existing cache key"
aws s3 rm "s3://a8c-ci-cache/$CACHE_KEY"
aws s3 rm "s3://$CACHE_BUCKET_NAME/$CACHE_KEY"
fi

if ! aws s3api head-object --bucket "$CACHE_BUCKET_NAME" --key "$CACHE_KEY" > /dev/null 2>&1; then
Expand Down

0 comments on commit e63eb2a

Please sign in to comment.