Deploy only to the correct testnet depending on the current branch

This commit is contained in:
Zahary Karadjov 2019-05-14 16:55:03 +03:00
parent 8e921072af
commit 2b26f5f2f4
6 changed files with 12 additions and 9 deletions

View File

@ -6,6 +6,12 @@ cd $(dirname "$0")
export GIT_REVISION=$(git rev-parse HEAD) export GIT_REVISION=$(git rev-parse HEAD)
NETWORK=testnet0
if [[ $(git rev-parse --abbrev-ref HEAD) == "devel" ]]; then
NETWORK=testnet1
fi
buildAndPush() { buildAndPush() {
export NETWORK=$1 export NETWORK=$1
export NETWORK_BACKEND=$2 export NETWORK_BACKEND=$2
@ -13,8 +19,5 @@ buildAndPush() {
(cd beacon_node && make push) (cd beacon_node && make push)
} }
buildAndPush testnet0 rlpx buildAndPush $NETWORK rlpx
buildAndPush testnet1 rlpx
#buildAndPush testnet0 libp2p #buildAndPush testnet0 libp2p
#buildAndPush testnet1 libp2p

@ -1 +1 @@
Subproject commit e69d5ecfe6cdd35a88468365763057a9d340723d Subproject commit 8da71715eb7951bca996162d3b8407792b970934

@ -1 +1 @@
Subproject commit a064c403538d274c9e9aba0995f3e05587b4f3ac Subproject commit 249f978fa76ba2b25a48b9585c96e238aded2128

2
vendor/nim-chronos vendored

@ -1 +1 @@
Subproject commit 04b60a0e4060cea81ddd883a991a2658074f4689 Subproject commit 6e7a753793bccae95889f6e46510098a7934400b

2
vendor/nim-eth vendored

@ -1 +1 @@
Subproject commit 14513b3bd83dc1de3f6c5da17331d7eac95b9332 Subproject commit 55e1eff4a95c1ed889fbf74b6069766538aa6ef7

2
vendor/nim-json-rpc vendored

@ -1 +1 @@
Subproject commit 92a7b78f4a2b13bd56260694c0035f7c71f10cb5 Subproject commit 493583b7f45e59e371fbc067d74629ad84c99801