mirror of
https://github.com/Retropex/docker-bitcoind.git
synced 2025-06-02 23:42:29 +02:00
Change the way verification works
This commit is contained in:
parent
e62c804d7f
commit
6897b52335
@ -52,8 +52,10 @@ FROM preparer-base AS preparer-release
|
|||||||
|
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
|
|
||||||
# Download checksums
|
# Download sigs
|
||||||
ADD https://bitcoincore.org/bin/bitcoin-core-$VERSION/SHA256SUMS.asc ./
|
ADD https://bitcoincore.org/bin/bitcoin-core-$VERSION/SHA256SUMS.asc ./
|
||||||
|
# Download checksums
|
||||||
|
ADD https://bitcoincore.org/bin/bitcoin-core-$VERSION/SHA256SUMS ./
|
||||||
|
|
||||||
# Download source code (intentionally different website than checksums)
|
# Download source code (intentionally different website than checksums)
|
||||||
# uncomment
|
# uncomment
|
||||||
@ -61,10 +63,10 @@ ADD https://bitcoincore.org/bin/bitcoin-core-$VERSION/SHA256SUMS.asc ./
|
|||||||
ADD https://bitcoincore.org/bin/bitcoin-core-$VERSION/bitcoin-$VERSION.tar.gz ./
|
ADD https://bitcoincore.org/bin/bitcoin-core-$VERSION/bitcoin-$VERSION.tar.gz ./
|
||||||
|
|
||||||
# Verify that hashes are signed with the previously imported key
|
# Verify that hashes are signed with the previously imported key
|
||||||
RUN gpg --verify SHA256SUMS.asc
|
RUN gpg --verify SHA256SUMS.asc SHA256SUMS
|
||||||
|
|
||||||
# Verify that downloaded source-code archive matches exactly the hash that's provided
|
# Verify that downloaded source-code archive matches exactly the hash that's provided
|
||||||
RUN grep " bitcoin-$VERSION.tar.gz\$" SHA256SUMS.asc | sha256sum -c -
|
RUN grep " bitcoin-$VERSION.tar.gz\$" SHA256SUMS | sha256sum -c -
|
||||||
|
|
||||||
# Extract
|
# Extract
|
||||||
RUN tar -xzf "bitcoin-$VERSION.tar.gz" && \
|
RUN tar -xzf "bitcoin-$VERSION.tar.gz" && \
|
||||||
|
Loading…
Reference in New Issue
Block a user