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

Commit

Permalink
CI(scripts): pin geth to v1.10.26 (#5900)
Browse files Browse the repository at this point in the history
Declared GETH version in one location per bash script. 

This will make pinning and unpinning GETH easier.
  • Loading branch information
cds-amal authored Feb 16, 2023
1 parent ec7c7a2 commit 2f38379
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
12 changes: 10 additions & 2 deletions scripts/ci.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/usr/bin/env bash

# Set geth version to stable, or pin to a specific version
# as necessary when geth release breaks CI
# Snoop these
# - https://hub.docker.com/r/ethereum/client-go
# - https://github.com/ethereum/go-ethereum/releases
# GETH_VERSION="stable"
GETH_VERSION="v1.10.26"

# Exit script as soon as a command fails.
set -o errexit

Expand All @@ -11,7 +19,7 @@ run_geth() {
-p 8545:8545 \
-p 8546:8546 \
-p 30303:30303 \
ethereum/client-go:stable \
"ethereum/client-go:$GETH_VERSION" \
--http \
--http.addr '0.0.0.0' \
--http.port 8545 \
Expand Down Expand Up @@ -41,7 +49,7 @@ if [ "$INTEGRATION" = true ]; then
elif [ "$GETH" = true ]; then

sudo apt install -y jq
docker pull ethereum/client-go:v1.10.19
docker pull "ethereum/client-go:$GETH_VERSION"
run_geth
sleep 30
lerna run --scope truffle test --stream -- --exit
Expand Down
12 changes: 10 additions & 2 deletions scripts/geth.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#!/usr/bin/env bash

docker pull ethereum/client-go:stable
# Set geth version to stable, or pin to a specific version
# as necessary when geth release breaks CI
# Snoop these
# - https://hub.docker.com/r/ethereum/client-go
# - https://github.com/ethereum/go-ethereum/releases
# GETH_VERSION="stable"
GETH_VERSION="v1.10.26"

docker pull "ethereum/client-go:$GETH_VERSION"

CID=$(docker run \
-v /$PWD/scripts:/scripts \
Expand All @@ -9,7 +17,7 @@ CID=$(docker run \
-p 8545:8545 \
-p 8546:8546 \
-p 30303:30303 \
ethereum/client-go:stable \
"ethereum/client-go:$GETH_VERSION" \
--http \
--http.addr '0.0.0.0' \
--http.port 8545 \
Expand Down

0 comments on commit 2f38379

Please sign in to comment.