mirror of
https://github.com/miskcoo/ugreen_dx4600_leds_controller.git
synced 2025-07-23 04:13:04 +02:00
Some checks failed
Build kernel module for TrueNAS / build-and-run (push) Has been cancelled
16 lines
306 B
Bash
16 lines
306 B
Bash
|
|
|
|
set -x
|
|
|
|
if [[ ! -d ./build ]]; then
|
|
mkdir build
|
|
fi
|
|
|
|
docker build --tag bookworm-build .
|
|
docker run \
|
|
--rm \
|
|
--mount type=bind,source=$(pwd)/build,target=/build \
|
|
--mount type=bind,source=$(pwd)/build.sh,target=/build.sh \
|
|
bookworm-build \
|
|
bash -c "cd /build && bash /build.sh $1"
|