Skip to content

Commit cfba6b8

Browse files
committed
build: use dedicated docker image ps5-payload-sdk-pldmgr to prevent image tag conflicts
1 parent cad957f commit cfba6b8

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

build_release.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ if [ -z "$VERSION" ]; then
1010
fi
1111

1212
OUTPUT_ELF="pldmgr_v${VERSION}.elf"
13+
IMAGE_NAME="ps5-payload-sdk-pldmgr"
1314

1415
echo "--- Building Payload Manager v$VERSION ---"
1516

@@ -22,9 +23,20 @@ if [ $? -ne 0 ]; then
2223
fi
2324
echo " Frontend build successful."
2425

26+
# 2b. Build/verify the docker image
27+
if [[ "$(docker images -q $IMAGE_NAME 2> /dev/null)" == "" ]]; then
28+
echo " Docker image $IMAGE_NAME not found. Building... (this may take a few minutes)"
29+
docker build -t $IMAGE_NAME -f Dockerfile.sdk .
30+
if [ $? -ne 0 ]; then
31+
echo " !!! Docker image build FAILED!"
32+
exit 1
33+
fi
34+
echo " Docker image built successfully."
35+
fi
36+
2537
# 3. Build native ELF via Docker
2638
echo "[2/3] Building native ELF via Docker..."
27-
docker run --rm -v "$(pwd)":/src -w /src ps5-payload-sdk make clean all > /dev/null 2>&1
39+
docker run --rm -v "$(pwd)":/src -w /src $IMAGE_NAME make clean all > /dev/null 2>&1
2840

2941
if [ $? -ne 0 ]; then
3042
echo " !!! ELF build FAILED!"

0 commit comments

Comments
 (0)