mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-21 22:11:41 +01:00
github+scripts: bump itests to bitcoind v28, allow testing with RCs
This commit is contained in:
parent
136cb42457
commit
6ac1ffd274
2 changed files with 11 additions and 4 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -21,7 +21,7 @@ defaults:
|
|||
shell: bash
|
||||
|
||||
env:
|
||||
BITCOIN_VERSION: "27"
|
||||
BITCOIN_VERSION: "28"
|
||||
|
||||
TRANCHES: 8
|
||||
|
||||
|
|
|
@ -4,13 +4,20 @@ set -ev
|
|||
|
||||
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
|
||||
echo "Must specify a version of bitcoind to install."
|
||||
echo "Usage: install_bitcoind.sh <version>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker pull lightninglabs/bitcoin-core:${BITCOIND_VERSION}
|
||||
CONTAINER_ID=$(docker create lightninglabs/bitcoin-core:${BITCOIND_VERSION})
|
||||
sudo docker cp $CONTAINER_ID:/opt/bitcoin-${BITCOIND_VERSION}.0/bin/bitcoind /usr/local/bin/bitcoind
|
||||
docker pull ${REPO}:${BITCOIND_VERSION}${TAG_SUFFIX}
|
||||
CONTAINER_ID=$(docker create ${REPO}:${BITCOIND_VERSION}${TAG_SUFFIX})
|
||||
sudo docker cp $CONTAINER_ID:/opt/bitcoin-${BITCOIND_VERSION}${DIR_SUFFIX}/bin/bitcoind /usr/local/bin/bitcoind
|
||||
docker rm $CONTAINER_ID
|
||||
|
|
Loading…
Add table
Reference in a new issue