mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-23 08:27:59 +00:00
516ad523c1
Just reorganizing
24 lines
556 B
Bash
Executable File
24 lines
556 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
cumulus_repo=$(cd "$(dirname "$0")" && git rev-parse --show-toplevel)
|
|
polkadot_repo=$(dirname "$cumulus_repo")/polkadot
|
|
if [ ! -d "$polkadot_repo/.git" ]; then
|
|
echo "please clone polkadot in parallel to this repo:"
|
|
echo " (cd .. && git clone git@github.com:paritytech/polkadot.git)"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -z "$BRANCH" ]; then
|
|
BRANCH=cumulus-branch
|
|
fi
|
|
|
|
cd "$polkadot_repo"
|
|
git fetch
|
|
git checkout "$BRANCH"
|
|
time docker build \
|
|
-f ./docker/Dockerfile \
|
|
--build-arg PROFILE=release \
|
|
-t polkadot:"$BRANCH" .
|