Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 2f38379

Browse files
authored
CI(scripts): pin geth to v1.10.26 (#5900)
Declared GETH version in one location per bash script. This will make pinning and unpinning GETH easier.
1 parent ec7c7a2 commit 2f38379

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

scripts/ci.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
#!/usr/bin/env bash
22

3+
# Set geth version to stable, or pin to a specific version
4+
# as necessary when geth release breaks CI
5+
# Snoop these
6+
# - https://hub.docker.com/r/ethereum/client-go
7+
# - https://github.com/ethereum/go-ethereum/releases
8+
# GETH_VERSION="stable"
9+
GETH_VERSION="v1.10.26"
10+
311
# Exit script as soon as a command fails.
412
set -o errexit
513

@@ -11,7 +19,7 @@ run_geth() {
1119
-p 8545:8545 \
1220
-p 8546:8546 \
1321
-p 30303:30303 \
14-
ethereum/client-go:stable \
22+
"ethereum/client-go:$GETH_VERSION" \
1523
--http \
1624
--http.addr '0.0.0.0' \
1725
--http.port 8545 \
@@ -41,7 +49,7 @@ if [ "$INTEGRATION" = true ]; then
4149
elif [ "$GETH" = true ]; then
4250

4351
sudo apt install -y jq
44-
docker pull ethereum/client-go:v1.10.19
52+
docker pull "ethereum/client-go:$GETH_VERSION"
4553
run_geth
4654
sleep 30
4755
lerna run --scope truffle test --stream -- --exit

scripts/geth.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
#!/usr/bin/env bash
22

3-
docker pull ethereum/client-go:stable
3+
# Set geth version to stable, or pin to a specific version
4+
# as necessary when geth release breaks CI
5+
# Snoop these
6+
# - https://hub.docker.com/r/ethereum/client-go
7+
# - https://github.com/ethereum/go-ethereum/releases
8+
# GETH_VERSION="stable"
9+
GETH_VERSION="v1.10.26"
10+
11+
docker pull "ethereum/client-go:$GETH_VERSION"
412

513
CID=$(docker run \
614
-v /$PWD/scripts:/scripts \
@@ -9,7 +17,7 @@ CID=$(docker run \
917
-p 8545:8545 \
1018
-p 8546:8546 \
1119
-p 30303:30303 \
12-
ethereum/client-go:stable \
20+
"ethereum/client-go:$GETH_VERSION" \
1321
--http \
1422
--http.addr '0.0.0.0' \
1523
--http.port 8545 \

0 commit comments

Comments
 (0)