Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroCabeza committed Aug 22, 2024
1 parent 6adde6b commit 7ff1578
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions transport-interop/dockerBuildWrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
CACHING_OPTIONS=""
# If in CI and we have a defined cache bucket, use caching
if [[ -n "${CI}" ]] && [[ -n "${AWS_BUCKET}" ]]; then
CACHING_OPTIONS="\
--cache-to type=s3,mode=max,bucket=$AWS_BUCKET,region=$AWS_REGION,prefix=buildCache,name=$IMAGE_NAME \
--cache-from type=s3,mode=max,bucket=$AWS_BUCKET,region=$AWS_REGION,prefix=buildCache,name=$IMAGE_NAME"
# CACHING_OPTIONS="\
# --cache-to type=s3,mode=max,bucket=$AWS_BUCKET,region=$AWS_REGION,prefix=buildCache,name=$IMAGE_NAME \
# --cache-from type=s3,mode=max,bucket=$AWS_BUCKET,region=$AWS_REGION,prefix=buildCache,name=$IMAGE_NAME"
fi

CACHING_OPTIONS="\
--cache-to type=gha,mode=max \
--cache-from type=gha,mode=max"

docker buildx build \
--load \
-t $IMAGE_NAME $CACHING_OPTIONS "$@"

0 comments on commit 7ff1578

Please sign in to comment.