mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-13 22:04:52 +00:00
25 lines
346 B
Bash
Executable File
25 lines
346 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euv
|
|
|
|
cd $(dirname "$0")
|
|
|
|
export GIT_REVISION=$(git rev-parse HEAD)
|
|
|
|
NETWORK=testnet1
|
|
|
|
if [[ $(git rev-parse --abbrev-ref HEAD) == "master" ]]; then
|
|
NETWORK=testnet0
|
|
fi
|
|
|
|
buildAndPush() {
|
|
export NETWORK=$1
|
|
export NETWORK_TYPE=$2
|
|
|
|
(cd beacon_node && make push)
|
|
}
|
|
|
|
# buildAndPush $NETWORK rlpx
|
|
buildAndPush $NETWORK libp2p
|
|
|