mirror of
https://github.com/status-im/libp2p-test-plans.git
synced 2025-01-20 19:59:43 +00:00
3b6d87b532
* Update Go test implementations to match new spec * Update JS test implementation * Update Rust test Implementation * Update root Makefile * Update runner to new spec * Use composite action and S3 caching * Not using GHA cache anymore * Try removing access key from env * Test workflow without cache keys (#131) * Test if it works without s3 cache keys * Fix if statement * Fix if statement * Always use buildkit * Undo debug change * Add no cache workflow * Skip test in no-cache workflow * Update .github/workflows/no-cache-multidim-interop.yml * Same workflow; use CACHING_OPTIONS * Add Browser WebRTC test (#130) * Add webrtc to JS test * Add onlyDial to all queries * Update versions.ts * Remove unneeded timeout overrides
14 lines
486 B
Bash
Executable File
14 lines
486 B
Bash
Executable File
#!/usr/bin/env /bin/bash
|
|
|
|
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"
|
|
fi
|
|
|
|
docker buildx build \
|
|
--load \
|
|
-t $IMAGE_NAME $CACHING_OPTIONS "$@"
|