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)

View File

@@ -1,4 +1,6 @@
FROM p2pool_build_ubuntu
ARG P2POOL_VERSION
ARG P2POOL_CHECKOUT
ENV P2POOL_CHECKOUT=${P2POOL_CHECKOUT}
ADD . /p2pool/
RUN /p2pool/scripts/release/macos_aarch64/p2pool_macos_aarch64.sh p2pool-${P2POOL_VERSION}-macos-aarch64 ${P2POOL_VERSION}

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_macos_aarch64_build_$1 -f Dockerfile "$repo_root"
docker build $cpu_set \
--build-arg P2POOL_VERSION=$1 \
--build-arg P2POOL_CHECKOUT=$checkout_ref \
-t p2pool_macos_aarch64_build_$1 \
-f Dockerfile "$repo_root"
docker create --name p2pool_macos_aarch64_build_$1_container p2pool_macos_aarch64_build_$1:latest
docker cp p2pool_macos_aarch64_build_$1_container:/p2pool/build/p2pool-$1-macos-aarch64.tar.gz ../p2pool-$1-macos-aarch64.tar.gz

View File

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

View File

@@ -1,4 +1,6 @@
FROM p2pool_build_ubuntu
ARG P2POOL_VERSION
ARG P2POOL_CHECKOUT
ENV P2POOL_CHECKOUT=${P2POOL_CHECKOUT}
ADD . /p2pool/
RUN /p2pool/scripts/release/windows_x64/p2pool_windows_x64.sh p2pool-${P2POOL_VERSION}-windows-x64 ${P2POOL_VERSION}

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_windows_x64_build_$1 -f Dockerfile "$repo_root"
docker build $cpu_set \
--build-arg P2POOL_VERSION=$1 \
--build-arg P2POOL_CHECKOUT=$checkout_ref \
-t p2pool_windows_x64_build_$1 \
-f Dockerfile "$repo_root"
docker create --name p2pool_windows_x64_build_$1_container p2pool_windows_x64_build_$1:latest
docker cp p2pool_windows_x64_build_$1_container:/p2pool/build/p2pool-$1-windows-x64.zip ../p2pool-$1-windows-x64.zip

View File

@@ -10,7 +10,9 @@ cp -r patches "$PATCH_TMP_ROOT/"
PATCH_DIR="$PATCH_TMP_ROOT/patches"
git fetch --jobs=$(nproc)
git checkout $2
CHECKOUT_REF=${P2POOL_CHECKOUT:-$2}
echo "Checking out ${CHECKOUT_REF} (version label $2)"
git checkout "$CHECKOUT_REF"
git submodule update --recursive --jobs $(nproc)
export TZ=UTC0