Skip to content

Commit

Permalink
Update preBuildHook.s3
Browse files Browse the repository at this point in the history
  • Loading branch information
angerman committed May 9, 2024
1 parent 4918dbc commit eea95cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cabalHooks/preBuildHook.s3
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ aws s3 ls s3://"$CACHE_BUCKET"/devx-shell/"$CACHE_KEY" --endpoint-url "$AWS_ENDP
if [ $? -eq 0 ]; then
echo "S3 hit $1"
aws s3 cp s3://"$CACHE_BUCKET"/devx-shell/"$CACHE_KEY" - --endpoint-url "$AWS_ENDPOINT" | tar -xz
# leave an empty $CACHE_KEY file for the postBuildHook to see and not re-upload.
touch "$CACHE_KEY"
else
echo "S3 miss $1"
exit 1
Expand Down

0 comments on commit eea95cb

Please sign in to comment.