ignore tags 3

This commit is contained in:
t1amak
2025-11-14 21:45:27 +00:00
parent 81c5ff2526
commit 9cc24a2c56
8 changed files with 29 additions and 5 deletions

View File

@@ -6,6 +6,7 @@ set -eu
cd "$(dirname "$0")"
repo_root="$(cd ../../.. && pwd)"
checkout_ref="$(git -C "$repo_root" rev-parse HEAD)"
if [ "${2:-}" ]; then
cpu_set="--cpuset-cpus $2"
@@ -13,7 +14,11 @@ else
cpu_set=""
fi
docker build $cpu_set --build-arg P2POOL_VERSION=$1 -t p2pool_linux_x64_build_$1 -f Dockerfile "$repo_root"
docker build $cpu_set \
--build-arg P2POOL_VERSION=$1 \
--build-arg P2POOL_CHECKOUT=$checkout_ref \
-t p2pool_linux_x64_build_$1 \
-f Dockerfile "$repo_root"
docker create --name p2pool_linux_x64_build_$1_container p2pool_linux_x64_build_$1:latest
docker cp p2pool_linux_x64_build_$1_container:/p2pool/build/p2pool-$1-linux-x64.tar.gz ../p2pool-$1-linux-x64.tar.gz

View File

@@ -4,6 +4,7 @@ set -e
cd /p2pool
git fetch --jobs=$(nproc)
CHECKOUT_REF=${P2POOL_CHECKOUT:-$2}
echo "Checking out ${CHECKOUT_REF} (version label $2)"
git checkout "$CHECKOUT_REF"
git submodule update --recursive --jobs $(nproc)