mirror of
https://github.com/status-im/libp2p-test-plans.git
synced 2025-01-12 15:54:09 +00:00
wip
This commit is contained in:
parent
6adde6b6a3
commit
7ff157814e
@ -3,11 +3,15 @@
|
|||||||
CACHING_OPTIONS=""
|
CACHING_OPTIONS=""
|
||||||
# If in CI and we have a defined cache bucket, use caching
|
# If in CI and we have a defined cache bucket, use caching
|
||||||
if [[ -n "${CI}" ]] && [[ -n "${AWS_BUCKET}" ]]; then
|
if [[ -n "${CI}" ]] && [[ -n "${AWS_BUCKET}" ]]; then
|
||||||
CACHING_OPTIONS="\
|
# CACHING_OPTIONS="\
|
||||||
--cache-to type=s3,mode=max,bucket=$AWS_BUCKET,region=$AWS_REGION,prefix=buildCache,name=$IMAGE_NAME \
|
# --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"
|
# --cache-from type=s3,mode=max,bucket=$AWS_BUCKET,region=$AWS_REGION,prefix=buildCache,name=$IMAGE_NAME"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
CACHING_OPTIONS="\
|
||||||
|
--cache-to type=gha,mode=max \
|
||||||
|
--cache-from type=gha,mode=max"
|
||||||
|
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
--load \
|
--load \
|
||||||
-t $IMAGE_NAME $CACHING_OPTIONS "$@"
|
-t $IMAGE_NAME $CACHING_OPTIONS "$@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user