Build scripts: added source archive

This commit is contained in:
SChernykh
2025-07-04 20:09:01 +02:00
parent 325aca29ce
commit 83f8b70c9b
5 changed files with 52 additions and 0 deletions

13
release_scripts/source/build.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
# Example usage: ./build.sh v4.8.1
cd "$(dirname "$0")"
docker build --build-arg P2POOL_VERSION=$1 --build-arg BUILD_TIMESTAMP="$(git show --no-patch --format=%ct $1)" -t p2pool_source_build .
docker create --name p2pool_source_build_container p2pool_source_build:latest
docker cp p2pool_source_build_container:/root/p2pool_source-$1.tar.xz ../p2pool_source-$1.tar.xz
docker rm p2pool_source_build_container
docker image rm -f p2pool_source_build