2019-03-22 01:35:01 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -euv
|
|
|
|
|
2019-03-23 11:12:22 +00:00
|
|
|
cd $(dirname "$0")
|
2019-03-22 01:35:01 +00:00
|
|
|
|
2019-03-25 00:25:48 +00:00
|
|
|
export GIT_REVISION=$(git rev-parse HEAD)
|
|
|
|
|
2019-06-19 18:48:16 +00:00
|
|
|
NETWORK=testnet1
|
2019-05-14 13:55:03 +00:00
|
|
|
|
|
|
|
if [[ $(git rev-parse --abbrev-ref HEAD) == "devel" ]]; then
|
|
|
|
NETWORK=testnet1
|
|
|
|
fi
|
|
|
|
|
2019-03-22 16:10:53 +00:00
|
|
|
buildAndPush() {
|
|
|
|
export NETWORK=$1
|
2019-06-20 14:06:35 +00:00
|
|
|
export NETWORK_TYPE=$2
|
2019-03-22 01:35:01 +00:00
|
|
|
|
2019-03-23 11:12:22 +00:00
|
|
|
(cd beacon_node && make push)
|
2019-03-22 01:35:01 +00:00
|
|
|
}
|
|
|
|
|
2019-06-19 18:48:16 +00:00
|
|
|
# buildAndPush $NETWORK rlpx
|
|
|
|
buildAndPush $NETWORK libp2p_spec
|
|
|
|
|