The home for Hyperlane core contracts, sdk packages, and other infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
hyperlane-monorepo/rust/build.sh

20 lines
654 B

TAG=$1
USE_DEFAULT_PLATFORM=$2
if [[ -z $TAG ]]; then
TAG="sha-$(git rev-parse --short HEAD)"
echo "Defaulting to tag $TAG"
if [[ ! -z $(git status -s) ]]; then
echo "Note there are uncommitted changes"
fi
# Apple M1 chips by default will build for arm64, which isn't compatible
# with our K8s setup. By manually building for amd64, we build an image
# compatible with our K8s infrastructure.
# More info: https://stackoverflow.com/a/71102144
if [[ $USE_DEFAULT_PLATFORM != "true" ]]; then
PLATFORM="--platform=linux/amd64/v8"
fi
fi
DOCKER_BUILDKIT=1 docker build $PLATFORM -t gcr.io/abacus-labs-dev/hyperlane-agent:$TAG .