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
|
|
|
|
2019-08-08 12:46:17 +00:00
|
|
|
if [[ $(git rev-parse --abbrev-ref HEAD) == "master" ]]; then
|
|
|
|
NETWORK=testnet0
|
2019-05-14 13:55:03 +00:00
|
|
|
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
|
2019-08-08 12:46:17 +00:00
|
|
|
buildAndPush $NETWORK libp2p
|
2019-06-19 18:48:16 +00:00
|
|
|
|