go-ethereum/cicd/entry.sh
Daniel Liu be40f8ac21
chore(cicd,common): unify XDC runtime binary across networks (#2147)
Package a single XDC binary for all networks and remove binary-switching logic from the CI/CD flow.

Changes:

- cicd/Dockerfile: build once and copy only /usr/bin/XDC

- cicd/entry.sh: validate NETWORK and remove runtime relink

- Makefile: make XDC-devnet-local depend on XDC; remove constants file swap

- common/constants: delete duplicated constants.go.{testnet,devnet,local}

Impact:

- network differences are now driven by runtime config, not separate binaries
2026-03-10 18:52:38 +05:30

20 lines
433 B
Bash
Executable file

#!/bin/bash
case "$NETWORK" in
"")
echo "NETWORK environment variable must be set. Allowed values: mainnet/testnet/devnet/local"
exit 1
;;
mainnet|testnet|devnet|local)
;;
*)
echo "Invalid NETWORK: $NETWORK. Allowed: mainnet/testnet/devnet/local"
exit 1
;;
esac
echo "Select to run $NETWORK..."
cp -n /work/"$NETWORK"/* /work
echo "Start Node..."
/work/start.sh