script: update CI to bitcoind 22

This commit is contained in:
Olaoluwa Osuntokun 2021-11-03 15:33:13 -07:00
parent 859c6d7ac5
commit 56d00f40ef
No known key found for this signature in database
GPG Key ID: 3BBD59E99B280306
3 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@ env:
# go needs absolute directories, using the $HOME variable doesn't work here.
GOCACHE: /home/runner/work/go/pkg/build
GOPATH: /home/runner/work/go
BITCOIN_VERSION: 0.20.1
BITCOIN_VERSION: "22.0"
# If you change this value, please change it in the following files as well:
# /.travis.yml

View File

@ -26,7 +26,7 @@ go:
env:
global:
- GOCACHE=$HOME/.go-build
- BITCOIN_VERSION=0.20.1
- BITCOIN_VERSION="22.0"
sudo: required

View File

@ -2,9 +2,9 @@
set -ev
BITCOIND_VERSION=${BITCOIN_VERSION:-0.20.1}
BITCOIND_VERSION=${BITCOIN_VERSION:-22.0}
docker pull ruimarinho/bitcoin-core:$BITCOIND_VERSION
CONTAINER_ID=$(docker create ruimarinho/bitcoin-core:$BITCOIND_VERSION)
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/bin/bitcoind /usr/local/bin/bitcoind
docker rm $CONTAINER_ID