github+scripts: bump itests to bitcoind v28, allow testing with RCs

This commit is contained in:
Oliver Gugger 2024-09-02 18:09:37 +02:00
parent 136cb42457
commit 6ac1ffd274
No known key found for this signature in database
GPG Key ID: 8E4256593F177720
2 changed files with 11 additions and 4 deletions

View File

@ -21,7 +21,7 @@ defaults:
shell: bash shell: bash
env: env:
BITCOIN_VERSION: "27" BITCOIN_VERSION: "28"
TRANCHES: 8 TRANCHES: 8

View File

@ -4,13 +4,20 @@ set -ev
BITCOIND_VERSION=$1 BITCOIND_VERSION=$1
# Useful for testing RCs: e.g. TAG_SUFFIX=.0rc1, DIR_SUFFIX=.0rc1
TAG_SUFFIX=
DIR_SUFFIX=.0
# Useful for testing against an image pushed to a different Docker repo.
REPO=lightninglabs/bitcoin-core
if [ -z "$BITCOIND_VERSION" ]; then if [ -z "$BITCOIND_VERSION" ]; then
echo "Must specify a version of bitcoind to install." echo "Must specify a version of bitcoind to install."
echo "Usage: install_bitcoind.sh <version>" echo "Usage: install_bitcoind.sh <version>"
exit 1 exit 1
fi fi
docker pull lightninglabs/bitcoin-core:${BITCOIND_VERSION} docker pull ${REPO}:${BITCOIND_VERSION}${TAG_SUFFIX}
CONTAINER_ID=$(docker create lightninglabs/bitcoin-core:${BITCOIND_VERSION}) CONTAINER_ID=$(docker create ${REPO}:${BITCOIND_VERSION}${TAG_SUFFIX})
sudo docker cp $CONTAINER_ID:/opt/bitcoin-${BITCOIND_VERSION}.0/bin/bitcoind /usr/local/bin/bitcoind sudo docker cp $CONTAINER_ID:/opt/bitcoin-${BITCOIND_VERSION}${DIR_SUFFIX}/bin/bitcoind /usr/local/bin/bitcoind
docker rm $CONTAINER_ID docker rm $CONTAINER_ID