renamed variable to avoid name collision with the runner

This commit is contained in:
Lachee 2025-05-07 15:20:59 +10:00
parent c6f6788a41
commit 0dd2cafff2

View File

@ -35,12 +35,12 @@ if [ -z "${GAMECI_VERSION}" ]; then
fi fi
# Ensure IMAGE_OS is set, default to ubuntu if not # Ensure IMAGE_OS is set, default to ubuntu if not
if [ -z "${IMAGE_OS}" ]; then if [ -z "${GAMECI_OS}" ]; then
IMAGE_OS="ubuntu" GAMECI_OS="ubuntu"
# windows-il2cpp requires windows OS # windows-il2cpp requires windows OS
if [ "${UNITY_PLATFORM}" = "windows-il2cpp" ]; then if [ "${GAMECI_OS}" = "windows-il2cpp" ]; then
IMAGE_OS="windows" GAMECI_OS="windows"
fi fi
# TODO: MacOS probably requires a mac image. # TODO: MacOS probably requires a mac image.
@ -61,8 +61,8 @@ if [ -z "${PLATFORM}" ]; then
fi fi
BASE_IMAGE=unityci/editor:${IMAGE_OS}-${UNITY_VERSION}-${UNITY_PLATFORM}-${GAMECI_VERSION} BASE_IMAGE=unityci/editor:${GAMECI_OS}-${UNITY_VERSION}-${UNITY_PLATFORM}-${GAMECI_VERSION}
TAG=${IMAGE_OS}-${UNITY_VERSION}-${UNITY_PLATFORM}-runner TAG=${GAMECI_OS}-${UNITY_VERSION}-${UNITY_PLATFORM}-runner
FULL_IMAGE=${IMAGE}:${TAG} FULL_IMAGE=${IMAGE}:${TAG}
echo "Building Docker image ${FULL_IMAGE}" echo "Building Docker image ${FULL_IMAGE}"