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-06-19 21:48:16 +03:00
|
|
|
NETWORK=testnet1
|
2019-05-14 16:55:03 +03:00
|
|
|
|
|
|
|
if [[ $(git rev-parse --abbrev-ref HEAD) == "devel" ]]; then
|
|
|
|
NETWORK=testnet1
|
|
|
|
fi
|
|
|
|
|
2019-03-22 17:10:53 +01:00
|
|
|
buildAndPush() {
|
|
|
|
export NETWORK=$1
|
2019-06-20 17:06:35 +03:00
|
|
|
export NETWORK_TYPE=$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-06-19 21:48:16 +03:00
|
|
|
# buildAndPush $NETWORK rlpx
|
|
|
|
buildAndPush $NETWORK libp2p_spec
|
|
|
|
|