Skip to content

Commit 9a70b07

Browse files
authored
Merge pull request #64 from willcl-ark/fetch-verifypy-file
2 parents 2f1beba + 15fbe30 commit 9a70b07

File tree

18 files changed

+34
-4282
lines changed

18 files changed

+34
-4282
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,22 @@ on:
44
workflow_dispatch:
55
pull_request:
66
paths:
7-
- '27.2/**'
8-
- '28.3/**'
97
- '29.2/**'
10-
- '30.1/**'
8+
- '28.3/**'
9+
- '27.2/**'
1110

1211
jobs:
1312
build:
1413
runs-on: ubuntu-latest
1514
strategy:
1615
matrix:
1716
version:
18-
- '30.1/alpine'
19-
- '30.1'
17+
- '29.2/alpine'
18+
- '29.2'
19+
- '28.3/alpine'
20+
- '28.3'
21+
- '27.2/alpine'
22+
- '27.2'
2023
fail-fast: true
2124
steps:
2225
- name: Checkout

27.2/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ARG TARGETPLATFORM
1111
ENV BITCOIN_VERSION=27.2
1212
ENV SIGS_REPO_URL="https://github.com/bitcoin-core/guix.sigs.git"
1313
ENV SIGS_CLONE_DIR="guix.sigs"
14-
ENV VERIFY_SCRIPT_URL="https://raw.githubusercontent.com/bitcoin/bitcoin/master/contrib/verify-binaries/verify.py"
14+
ENV VERIFY_SCRIPT_URL="https://raw.githubusercontent.com/bitcoin/bitcoin/v${BITCOIN_VERSION}/contrib/verify-binaries/verify.py"
1515
ENV TMPDIR="/tmp/bitcoin_verify_binaries"
1616

1717
RUN set -ex \

27.2/alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ENV BITCOIN_PREFIX=/opt/bitcoin-${BITCOIN_VERSION}
2121
ENV BITCOIN_SOURCE_DIR=/bitcoin/src
2222
ENV SIGS_REPO_URL="https://github.com/bitcoin-core/guix.sigs.git"
2323
ENV SIGS_CLONE_DIR="guix.sigs"
24-
ENV VERIFY_SCRIPT_URL="https://github.com/bitcoin/bitcoin/raw/master/contrib/verify-binaries/verify.py"
24+
ENV VERIFY_SCRIPT_URL="https://raw.githubusercontent.com/bitcoin/bitcoin/v${BITCOIN_VERSION}/contrib/verify-binaries/verify.py"
2525

2626
WORKDIR /bitcoin
2727
RUN set -ex \

28.3/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ ARG TARGETPLATFORM
1111
ENV BITCOIN_VERSION=28.3
1212
ENV SIGS_REPO_URL="https://github.com/bitcoin-core/guix.sigs.git"
1313
ENV SIGS_CLONE_DIR="guix.sigs"
14+
ENV VERIFY_SCRIPT_URL="https://raw.githubusercontent.com/bitcoin/bitcoin/v${BITCOIN_VERSION}/contrib/verify-binaries/verify.py"
1415
ENV TMPDIR="/tmp/bitcoin_verify_binaries"
1516

16-
COPY verify-${BITCOIN_VERSION}.py .
17-
1817
RUN set -ex \
1918
&& if echo $BITCOIN_VERSION | grep -q "rc" ; then \
2019
VERIFY_VERSION=$(echo $BITCOIN_VERSION | sed 's/\(.*\)rc\([0-9]*\)/\1-rc\2/'); \
@@ -27,7 +26,9 @@ RUN set -ex \
2726
&& if [ "${TARGETPLATFORM}" = "linux/arm/v7" ]; then export TARGETPLATFORM=arm-linux-gnueabihf; fi \
2827
&& git clone ${SIGS_REPO_URL} ${SIGS_CLONE_DIR} \
2928
&& gpg --import "${SIGS_CLONE_DIR}"/builder-keys/* \
30-
&& ./verify-${BITCOIN_VERSION}.py \
29+
&& curl -o verify.py ${VERIFY_SCRIPT_URL} \
30+
&& chmod +x verify.py \
31+
&& ./verify.py \
3132
--min-good-sigs 6 pub "${VERIFY_VERSION}-linux" \
3233
&& tar -xzf "${TMPDIR}.${VERIFY_VERSION}-linux/bitcoin-${BITCOIN_VERSION}-${TARGETPLATFORM}.tar.gz" -C /opt \
3334
&& rm -rf ${SIGS_CLONE_DIR} \

28.3/alpine/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ ENV SIGS_CLONE_DIR="guix.sigs"
2424
ENV VERIFY_SCRIPT_URL="https://raw.githubusercontent.com/bitcoin/bitcoin/v${BITCOIN_VERSION}/contrib/verify-binaries/verify.py"
2525

2626
WORKDIR /bitcoin
27-
COPY verify-${BITCOIN_VERSION}.py .
2827

2928
RUN set -ex \
3029
&& if echo $BITCOIN_VERSION | grep -q "rc" ; then \
@@ -40,7 +39,9 @@ RUN set -ex \
4039
&& wget ${ADDRESS}/SHA256SUMS.asc \
4140
&& git clone ${SIGS_REPO_URL} ${SIGS_CLONE_DIR} \
4241
&& gpg --import "${SIGS_CLONE_DIR}"/builder-keys/* \
43-
&& ./verify-${BITCOIN_VERSION}.py bin SHA256SUMS \
42+
&& wget -O verify.py ${VERIFY_SCRIPT_URL} \
43+
&& chmod +x verify.py \
44+
&& ./verify.py bin SHA256SUMS \
4445
"bitcoin-${BITCOIN_VERSION}.tar.gz" \
4546
&& mkdir -p ${BITCOIN_SOURCE_DIR} \
4647
&& tar -xzf "bitcoin-${BITCOIN_VERSION}.tar.gz" -C ${BITCOIN_SOURCE_DIR} \

0 commit comments

Comments
 (0)