fix: add --no-cache to docker build to avoid stale layers
This commit is contained in:
@@ -114,12 +114,12 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Build the image
|
# Build the image with --no-cache to ensure fresh build
|
||||||
if [ -n "$BUILD_ARGS" ]; then
|
if [ -n "$BUILD_ARGS" ]; then
|
||||||
echo "🔧 Building with args: $BUILD_ARGS"
|
echo "🔧 Building with args: $BUILD_ARGS"
|
||||||
docker build $BUILD_ARGS -t "${IMAGE_NAME}:latest" "$IMAGE_PATH"
|
docker build --no-cache $BUILD_ARGS -t "${IMAGE_NAME}:latest" "$IMAGE_PATH"
|
||||||
else
|
else
|
||||||
docker build -t "${IMAGE_NAME}:latest" "$IMAGE_PATH"
|
docker build --no-cache -t "${IMAGE_NAME}:latest" "$IMAGE_PATH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Push latest tag
|
# Push latest tag
|
||||||
|
|||||||
Reference in New Issue
Block a user