mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
github+scripts: bump itests to bitcoind v28, allow testing with RCs
This commit is contained in:
parent
9ca21ecf2d
commit
fe8b89dc2c
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -21,7 +21,7 @@ defaults:
|
|||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BITCOIN_VERSION: "27"
|
BITCOIN_VERSION: "28"
|
||||||
|
|
||||||
TRANCHES: 8
|
TRANCHES: 8
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user