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