Upload entire dir
All checks were successful
Build Firmware / build (push) Successful in 19s

This commit is contained in:
2025-02-27 17:52:12 +01:00
parent c5464994ed
commit 00786c683d

View File

@@ -2,7 +2,8 @@
#export DOCKER_DEFAULT_PLATFORM=linux/amd64 #export DOCKER_DEFAULT_PLATFORM=linux/amd64
#export DOCKER_NETWORK="--network=host" #export DOCKER_NETWORK="--network=host"
IMAGE_NAME="uvk5" IMAGE_NAME="uvk5"
rm "${PWD}/compiled-firmware/*" rm -rf "${PWD}/compiled-firmware/*"
mkdir -p "${PWD}/compiled-firmware"
echo "Building docker image $IMAGE_NAME" echo "Building docker image $IMAGE_NAME"
if ! docker build -t $DOCKER_NETWORK $IMAGE_NAME . if ! docker build -t $DOCKER_NETWORK $IMAGE_NAME .
then then
@@ -11,4 +12,5 @@ then
fi fi
echo "Custom compilation..." echo "Custom compilation..."
docker run --rm -v "${PWD}/compiled-firmware/:/app/compiled-firmware" $IMAGE_NAME /bin/bash -c "mkdir -p ./compiled-firmware; rm ./compiled-firmware/*; cd /app && make -j && ls -lahr && cp f4hwn* compiled-firmware/" docker run --rm -v "${PWD}/compiled-firmware:/app/compiled-firmware" $IMAGE_NAME \
/bin/bash -c "cd /app && make -j && cp f4hwn* /app/compiled-firmware/ && ls -l /app/compiled-firmware/ || echo 'No files to copy'"